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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form validation, minimum characters

Status
Not open for further replies.

oshjosh

Technical User
Mar 11, 2002
34
TH
Hi,

Im pretty new to PHP, however I have a form that submits data to a mysql database, I would like to specify the minimum amount of characters that have entered into one field before the form can be submited, If any one can show me in simple terms I would be very grateful.

Cheers
Rob
 
before the form can be submited
Then it's done on the client side, hence PHP isn't involved. But, you should always have PHP do input validation to. Something like [tt]if (strlen($_POST['fieldName']) > $limit)[/tt] would seem to be sufficient for you. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top