hi
i have the following code which sets up text boxes for input
<form method=”post” action=”ex20-03.php”>
<table border=”0″ width=”90%” class=”txtSt”>
<tr><td colspan=”2″ class=”txtSt2″>General Information</td>
<td colspan=”2″ class=”txtSt2″>Login Information</td></tr>
<tr><td >Name</td><td>
<input type=”text” name=”name” class=”butSt”> </td>
<td >User Id</td>
<td ><input type=”text” name=”user_id” class=”butSt”></td></tr>
<tr><td >Gender</td>
<td><input type=”text” name=”gender” class=”butSt”></td>
<td >Password</td>
<td ><input type=”password” name=”pass_id” class=”butSt”></td></tr>
<tr><td >Age</td>
<td><input type=”text” name=”age” class=”butSt”></td>
<td >Confirm Password</td>
<td ><input type=”password” name=”con_pass_id” class=”butSt”></td></tr>
<tr><td >Address</td>
<td><input type=”text” name=”add01″ class=”butSt”></td>
<td colspan=”2″ class=”txtSt2″>Credit Card Information</td></tr>
<tr><td >Address</td>
<td><input type=”text” name=”add02″ class=”butSt”></td>
<td >Credit Card Type</td>
<td ><input type=”text” name=”card_type” class=”butSt”></td></tr>
<tr><td >City</td>
<td><input type=”text” name=”city” class=”butSt”></td>
<td >Card Number</td>
<td ><input type=”text” name=”card_no” class=”butSt”></td></tr>
<tr><td >Country</td>
<td><input type=”text” name=”country” class=”butSt”></td>
<td >Expiry Date</td>
<td ><input type=”text” name=”expiry_date” class=”butSt”></td></tr>
<tr><td >Postal Code</td>
<td><input type=”text” name=”post_code” class=”butSt”></td>
<td colspan=”2″ class=”txtSt2″>Contact Information</td></tr>
<tr><td >Email Address</td>
<td><input type=”text” name=”email” class=”butSt”></td>
<td >Phone Number</td>
<td ><input type=”text” name=”phone_no” class=”butSt”></td></tr>
</table><br /><br />
<input type=”submit” value=”Register” class=”butSt”>
<input type=”reset” value=”Clear” class=”butSt”>
</form>
now this seems to work no problem in setting up the web-page however when i come to validate the contents it does not work
when the submit button is triggered it calls some php like bellow
<?php
if ( (trim($name)==””) || (trim($gender)==””) || (trim($email)==””) ||
(trim($age)==””) || (trim($add01)==””) ||
(trim($add02)==””) || (trim($city)==””) ||
(trim($country)==””) || (trim($post_code)==””))
{
echo “Error.. General Information is not complete!”;
exit();
}
there is more than this but this is the first part and it never gets past this
even though there is data in every text field its stops here and says that some fields ar empty
can anyone please help
thanks scott
probaly something really simple for you guys