Jump to content

[SOLVED] not sure what's wrong.. do I just have mixed up variables or something?


ethan6

Recommended Posts

On this block of code i can't see any closing brackets for the if statements, which would cause that error.

 


<tr>
	<?php if ($fnameq == true) { ?><td><div align="right"><?php echo $error1; ?><b>*</b>First Name: </div></td>
	<td><div align="left"><input name="fname" type="text" size="25" maxlength="40" value="<?php echo $_POST['fname']; ?>" class="<?php echo $style1; ?>"></td>
</tr>
<tr>
	<?php if ($lnameq == true) { ?><td><div align="right"><?php echo $error2; ?><b>*</b>Last Name: </div></td>
	<td><div align="left"><input name="lname" type="text" size="25" maxlength="40" value="<?php echo $_POST['lname']; ?>" class="<?php echo $style2; ?>"></td>
</tr>
<tr>
	<?php if ($address1q == true) { ?><td><div align="right"><?php echo $error3; ?><b>*</b>Address 1: </div></td>
	<td><div align="left"><input name="address1" type="text" size="25" maxlength="40" value="<?php echo $_POST['address1']; ?>" class="<?php echo $style3; ?>"></td>
</tr>
<tr>
	<?php if ($address2q == true) { ?><td><div align="right"><?php echo $error4; ?><b>*</b>Address 2: </div></td>
	<td><div align="left"><input name="address2" type="text" size="25" maxlength="40" value="<?php echo $_POST['address2']; ?>" class="<?php echo $style4; ?>"></td>
</tr>
<tr>
	<?php if ($cityq == true) { ?><td><div align="right"><?php echo $error5; ?><b>*</b>City: </div></td>
	<td><div align="left"><input name="city" type="text" size="25" maxlength="40" value="<?php echo $_POST['city']; ?>" class="<?php echo $style5; ?>"></td>
</tr>
<tr>
	<?php if ($stateq == true) { ?><td><div align="right"><?php echo $error6; ?><b>*</b>State: </div></td>
	<td><div align="left"><input name="state" type="test" size="25" maxlength="40" value="<?php echo $_POST['state']; ?>" class="<?php echo $style6; ?>"></td>
</tr>
<tr>
	<?php if ($zipq == true) { ?><td><div align="right"><?php echo $error7; ?><b>*</b>Zip Code: </div></td>
	<td><div align="left"><input name="zip" type="test" size="25" maxlength="40" value="<?php echo $_POST['zip']; ?>" class="<?php echo $style7; ?>"></td>
</tr>
<tr>
	<?php if ($phoneq == true) { ?><td><div align="right"><?php echo $error8; ?><b>*</b>Phone: </div></td>
	<td><div align="left"><input name="phone" type="text" size="25" maxlength="40" value="<?php echo $_POST['phone']; ?>" class="<?php echo $style8; ?>"></td>
</tr>
<tr>
	<?php if ($sendemailq == true) { ?><td><div align="right"><?php echo $error9; ?><b>*</b>Email: </div></td>
	<td><div align="left"><input name="sendemail" type="text" size="25" maxlength="40" value="<?php echo $_POST['sendemail']; ?>" class="<?php echo $style9; ?>"></td>
</tr>
<tr>
	<?php if ($sendemail2q == true) { ?><td><div align="right"><?php echo $error10; ?><b>*</b>Re-enter Email: </div></td>
	<td><div align="left"><input name="sendemail2" type="text" size="25" maxlength="40" value="<?php echo $_POST['sendemail2']; ?>" class="<?php echo $style10; ?>"></td>
</tr>

thanks, will do.. this is my first time using this forum.

Testing..

 

 

 

Welcome to the forums, although formatting and indentation really don't have anything to do with the forum.  You should definitely try to use


tags, for syntax highlighting, it also usually results in faster/more replies.

 

There is also a "Topic Solved" button right above the "Quick Reply" tab in the bottom left.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.