PDA

View Full Version : Form Field Restrict



Magiccupcake
07 Apr 2008, 01:59 PM
I need something, preferably with javascript or php, that will look at a from filed and if it is between two numbers allow it to submit to the php file.

For example lets say someone enters "750" in the field. When they click submit a box would pop up and say "Value must be between 250-500"

What would be really ideal is if as soon as the number is entered, to the right of the box it would say if that number is acceptable. And then if not, would not allow the form to send.

Seems simple to me but I have tried for the last couple hours and can't seem to get anywhere with it.

Thanks for the help.