Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making Required Fields in MySQL

Status
Not open for further replies.

kyoko

Technical User
Mar 3, 2000
4
0
0
US
Hi:<br>
<br>
Is there a way to make a field required using mysql? So that a user filling in a form cannot submit without having completed certain info?<br>
<br>
Thanks in advance.
 
Check the form fields for values using javascript and don't submit the data if there's something missing.<br>
<br>

 
You can configure a column not to take null values, but make sure your CGI or PHP script reads non-entered fields as NULL instead of &quot;0&quot;.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top