Jump to content

error checking form


jobs1109

Recommended Posts

HI,

 

How can I make sure that this form is filled out correctly and no blank imputs ?

 

Here is the form

 




<table bgcolor="068e0d">


<tr><td style="width: 265px">
Job Title: <span class="style2">*</span></td><td><input type="text" name="Job-Title" style="width: 196px" /><span class="style2">
</span><br><br>
</td></tr>

<tr><td style="width: 265px">
Company: <span class="style2">*</span></td><td><input type="text" name="Company" style="width: 196px" /><span class="style2"> 
</span><br><br>
<td></td>

<tr><td style="width: 265px">
Salary: <span class="style2">*</span></td><td> <input type="text" name="Salary" style="width: 196px" /><br><br>
</td></tr>





<tr><td style="width: 265px">
Description: <span class="style2">*</span></td><td>
<textarea rows="17" cols="50" name="Description" wrap="physical" border="0">Description:</textarea>
<br><br>
</td></tr>






<tr><td style="width: 265px">
Company URL: <span class="style2">*</span></td><td><input type="text" name="Company-URL" style="width: 196px" /><br><br>
</td></tr>

<tr><td style="width: 265px">
Phone Number: <span class="style2">* </span> </td><td><input type="text" name="Phone-Number" style="width: 196px" /><br><br>
</td></tr>


<tr><td style="width: 265px">
Address: <span class="style2">*</span></td><td><input type="text" name="Address" style="width: 414px" /><br><br>
</td></tr>

<tr><td style="width: 265px">
Requirements: <span class="style2">*</span></td><td>
<textarea rows="17" cols="50" name="Requirements" wrap="physical">Requirements:</textarea>
<br><br>
</td></tr>








<tr><td style="width: 265px">
Job Category: <span class="style2">*</span></td><td><?php
include'Jobs-Category.php';
?><br><br>
</td></tr>


<tr><td style="width: 265px">
Job Type: <span class="style2">*</span></td><td><?php
include'Job-Type.php';
?>
<br><br>
</td></tr>

<tr><td colspan="2">
                                                                           
<input type="submit" value="Preview Job" />
<input type="reset" value="Reset"><br>
</td></tr>



</table>




Link to comment
Share on other sites

You should be checking server side first.  After that, you can add JS for user-friendliness.  I'll move you to the PHP Coding Help section and after you have that accomplished start a new thread in the JS section for client side checking help.

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.