liam1412 Posted November 29, 2006 Share Posted November 29, 2006 Okay just a basic oneI have just built the registration page of my first member system. I don't want to just paste all the code in coz its not relevant so i'll just explain.above the form I have a line of code something like[code]<?php if(isset($reg_error){ echo ?><p class="error"><?php $reg_error) } ?></p>[/code]Im not 100% percent this code is exactly right as im at work and i don't have the code on me. I know it works tho and it is very similar to this.The form posts to my php in a seperate file where $reg_error is set if any problems are encountered.My questionWhy no matter what I do is the the value of $reg_error splitting its self into 2 lines. Its prob something so simple but its driving me crazy.ie - If the reg error is something like. 'Your passwords do not match! Please try again!will display above my formYour passwords do nomatch! Please try againI have also checked that table cell is long enough that line of code is in. Thanks All Quote Link to comment Share on other sites More sharing options...
trq Posted November 29, 2006 Share Posted November 29, 2006 It would have to be something in the css definition of error. php has nothing to do with presentation. Quote Link to comment Share on other sites More sharing options...
taith Posted November 29, 2006 Share Posted November 29, 2006 when you ?><div><? or the likes... you dont need to echo it...and this is much easier :-)[code]<?if(isset($reg_error) echo '<p class="error">';?>[/code] Quote Link to comment 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.