Danny620 Posted July 3, 2009 Share Posted July 3, 2009 first off please go to this site and click login and the problem will be there www.northplanet.co.uk/login.php when login is printed the layout is messed up what i want to do is get them "*" to be printed next to the username and password in stead of being printed at the top please can you help me out thanks. Quote Link to comment https://forums.phpfreaks.com/topic/164689-help-needed/ Share on other sites More sharing options...
JJ2K Posted July 3, 2009 Share Posted July 3, 2009 I can't see no "*" ? Do you mean you want the error messages: "You forgot to enter your password! Please try again." To be underneath your input boxes? Then just echo them out under the input box Quote Link to comment https://forums.phpfreaks.com/topic/164689-help-needed/#findComment-868500 Share on other sites More sharing options...
Danny620 Posted July 3, 2009 Author Share Posted July 3, 2009 yes sorry i do and how would i do that please show me please Quote Link to comment https://forums.phpfreaks.com/topic/164689-help-needed/#findComment-868533 Share on other sites More sharing options...
JJ2K Posted July 3, 2009 Share Posted July 3, 2009 Just echo out the error underneath the input box then. So would be something like: <td><label> <input name="email" type="text" class="input_form" id="email" size="35" maxlength="40" /> <?php echo "My Error"; ?> </label></td> You might want to add an if statement in there to see if the error exists first like: <tr> <td><div align="right" class="style2">Email:</div></td> <td><label> <input name="email" type="text" class="input_form" id="email" size="35" maxlength="40" /> </label></td> <td> </td> </tr> <tr><?php if(emailError) echo $emailError ?></tr> <tr> <td><div align="right" class="style2">Password:</div></td> <td><input name="pass" type="password" class="input_form" id="pass" size="35" maxlength="20" /></td> <td> </td> </tr> <tr><?php if(passError) echo $passError ?></tr> Quote Link to comment https://forums.phpfreaks.com/topic/164689-help-needed/#findComment-868535 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.