In HTML when i click on submit button it should validate the page and after validation it should redirect to the another page?How can do this?can one known answer to this question plz reply it....
Validate page and redirect after clicking on submit button
Collapse
X
-
Tags: None
-
Solution 1:
Use jQuery Validate plugin.
Solution 2:
Make a javascript validation function and call it on form onsubmit event. It should return false when invalid data is entered in the textboxes etc.Comment
-
Check with javascript/php/... to validate the form.
PHP: Create the form in html/php file (The writing of the form differs for each page: in php you write the form just like in html but put it in an echo like echo"Code:<form action='proces_file.php? method='post' onSubmit="JSFunction()"> ... </form>
Then in process_file.ph p you do what you want with the submitted info.Comment
Comment