Forum Moderators: open

Message Too Old, No Replies

Required fields

         

dubgirl

11:03 am on Feb 10, 2004 (gmt 0)

10+ Year Member



I want to have required fields on my form..and am currently using the following code:

<INPUT name=required type=hidden value="realname, email, Telephone_number, inmonth, inday, inyear, Number_of_nights_required, Number_of_guests">

<INPUT name=missing_fields_redirect type=hidden value="http://www.example.net/error.html">

My submit button is of type "button" rather than submit (which as far as i know is right) but for some reason, its not working!
Any clues why this simple procedure might not work?

PS I've tried the Javascript method too with no success - Perhaps its just me :(

[edited by: tedster at 12:15 pm (utc) on Feb. 10, 2004]

BlobFisk

1:52 pm on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think that either JavaScript (or a server side solution) is your best bet.

Have a look at JavaScript JumpStart #1 - form validation [webmasterworld.com], which should point you in the right direction.

HTH

DrDoc

4:06 pm on Feb 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think a JavaScript and server side solution is best ;)