Re: [PHP] required field
> I know you can do it with javascript but is there a way in php or straight > html to make a field in a form required? I would like to validate it on > submit. No, you just have to write some PHP code to verify that something was entered for the input and validate it based on whatever you think the data should be. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] required field
[snip] I know you can do it with javascript but is there a way in php or straight html to make a field in a form required? I would like to validate it on submit. [/snip] If server side validation works for you then you can check to see if the proper variable isset() and if not it can return to the page to require the information. If you need client side validation you will have to use JavaScript HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] required field
I know you can do it with javascript but is there a way in php or straight html to make a field in a form required? I would like to validate it on submit. Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php