Jump to content

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


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>

hey thanks so much guys!! I knew it'd be an easy fix, but i just couldn't figure it out, i was up til 3am looking for an end bracket or semi-colon mission, but all those just totally missed my search, lol.

 

THANKS AGAIN!

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.