Apr
Php and MySQL
I want to create a form to send employee data. One of the option I use button type.
After the user complete the form, it will be sent to confirmation page, the if confirmed it will be sent to savedata.php…But the data only arrive to th econfirmation page, it cannot be brought forward to th enext page.
Is there any other way than hidden type input to make sure the form completed still contain the data until posted to savedata.php?
Answer:
If you're just confirming the form was filled out then you are doing it strangely. That should be done with javascript on the originating page by checking the form data then submitting with javascript.
You shouldn't really need 2 pages after the entry page to check and submit the form data. You're making it harder than it needs to be.
With more details on what you are doing i may be able to provide better help
well i know you have a form, but are you simply verifying that it was filled out, or are you trying to validate it against a database?
here's a decent tutorial on form validation with javascript http://home.cogeco.ca/~ve3ll/jstutorb.ht…
this would be used to make sure all fields are filled, and things such as email and dates are in the proper format
Ok I see what you are doing now. You were going about it the right way. What you want to do is first get the data displayed on the verification page using php….I assume you have that step done.
Now what you want to do is recreate the form using hidden variables in that same page….would look something like this.