ethan6 Posted June 5, 2009 Share Posted June 5, 2009 When I run my page at http://myipodbroke.com/repair3a.php I get a "parse error". Any ideas at all? The source can be seen at http://myipodbroke.com/repair3a.txt Thanks for any help! Ethan Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/ Share on other sites More sharing options...
Maq Posted June 5, 2009 Share Posted June 5, 2009 Not Found The requested URL /repair3a.txt was not found on this server. My guess would be a missing ';' or bracket before line 398. Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/#findComment-849961 Share on other sites More sharing options...
Jibberish Posted June 5, 2009 Share Posted June 5, 2009 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> Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/#findComment-849965 Share on other sites More sharing options...
ethan6 Posted June 5, 2009 Author Share Posted June 5, 2009 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! Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/#findComment-849967 Share on other sites More sharing options...
Maq Posted June 5, 2009 Share Posted June 5, 2009 You should really consider properly formatting and indenting your code, makes debugging much easier. Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/#findComment-849969 Share on other sites More sharing options...
ethan6 Posted June 5, 2009 Author Share Posted June 5, 2009 thanks, will do.. this is my first time using this forum. Testing.. Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/#findComment-849975 Share on other sites More sharing options...
Maq Posted June 5, 2009 Share Posted June 5, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/161064-solved-not-sure-whats-wrong-do-i-just-have-mixed-up-variables-or-something/#findComment-849979 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.