Jump to content

Checking form inputs


affordit

Recommended Posts

Im looking to find out how to verify form inputs are entered and if not display on the form the fact that the field is required without showing the ugly errors. If someone could give me an example of how its done or suggest a good place to look?

 

Here is what I have know, a little primative.

<center><font size='+2'>Registration</font></center><br>
<form action=submit_registration.php method='POST'>
<table align='center' border='0'>
<tr>
<td align = 'left'><img src='b_tipp.png' alt='If you do not have a business you can leave this field blank'>Company Name:</td><td><input type=text name=company size=30 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='b_tipp.png' alt='This will be your username and will be cAsE SeNsItIvE'>Your Name:</td><td><input type=text name=username size=30 maxlength=100><br><font color = '#FF6600'>No Blank Spaces in Name</font></td>
</tr>
<tr>
<td align = 'left'><img src='16x16spacer.gif'>Address:</td><td><input type=text name=address size=30 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='16x16spacer.gif'>City:</td><td><input type=text name=city size=30 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='16x16spacer.gif'>State:</td><td align = 'left'><input type=text name=state size=2 maxlength=2></td>
</tr>
<tr>
<td align = 'left'><img src='16x16spacer.gif'>Zip:</td><td align = 'left'><input type=text name=zip size=5 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='16x16spacer.gif'>Phone:</td><td><input type=text name=phone size=30 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='b_tipp.png' alt='You must enter a valid email address so your new password can be emailed to you'>Email:</td><td><input type=text name=email size=30 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='b_tipp.png' alt='Write a question only you know the answer to. It will be used if you lose your password.'>Verification Question:</td><td><input type=text name=lost_password size=30 maxlength=100></td>
</tr>
<tr>
<td align = 'left'><img src='b_tipp.png' alt='Write your answer to the above question.'>Verification Answer:</td><td><input type=text name=lost_password_answer size=30 maxlength=100></td>
</tr>

Link to comment
Share on other sites

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.