Jump to content

help needed


Danny620

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/164689-help-needed/
Share on other sites

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>


 

 

 

Link to comment
https://forums.phpfreaks.com/topic/164689-help-needed/#findComment-868535
Share on other sites

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.