Hi,

For some reason the data isn't being accepted by the variables in my php.

HTML Code:
<form action="<?php $_SERVER['PHP_SELF'];?>" method="post" enctype="application/x-www-form-urlencoded" name="Register" target="_self">
<label class="left-label" for="cid">Customer ID:</label><label class="center-label" for="fname">First Name:</label><label class="right-label" for="lname">Last Name:</label><br /><input name="cid" id="cid" type="text" /> <input name="fname" id="fname" type="text" /> <input name="lname" id="lname" type="text" /> <br /><label class= "row2left-label" for="snum">Street Number:</label><label class= "row2center-label" for="sname">Street Name:</label><label class= "row2right-label" for="suburb">Suburb:</label><br /><input name="sum" id="snum" type="text" /> <input name="sname" id="sname" type="text" /> <input name="suburb" id="suburb" type="text" /> <br /><label class= "row3left-label" for="pcode">Post Code:</label><label class= "row3center-label" for="country">Country:</label><label class= "row3right-label" for="phone">Phone:</label><br /> <input name="pcode" id="pcode" type="text" /> <input name="country" id="counry" type="text" /> <input name="phone" id="phone" type="text" /><br /> <label class= "row4left-label" for="email">Email:</label><label class= "row4center-label" for="user">Username:</label><label class= "row4right-label" for="upassword">Password:</label><br /><input name="email" id="email" type="text" /> <input name="user" id="user" type="text" /> <input name="upassword" id="upassword" type="text" /><br />
<input name="submit" class="form-button" type="button" value="Submit" /> <input name="reset" type="button" value="Reset" />
</form>
<?php
$cid ="0";
$fname = "0";
$lname = "0";
$snum = "0";
$sname = "0";
$suburb = "0";
$pcode = "0";
$country = "0";
$phone = "0";
$email = "0";
$user = "0";
$password = "0";
?>
I can manually change the variable data and when I run the script that data will put in the database. However, if I set variable = "" or variable = 0 nothing gets put in the database. I have narrowed the problem down to the variables or the form but don't know which is the cause. I have reason to suspect the form though because neither of the buttons are working.

Any help will be appreciated!

Thanks,


Nightwalker