Is there any way to pass values between two forms. Let’s say, I have two html form.
At Form 1, there’s one field called name and submit button.
At Form 2, there’s two field called name and email and submit button.
What I want to get is, At form 1, when i fill Form 1 name field and click submit, it will carry me to form 2 and name values that I filled will be inserted at names field of Form 2.
Is that possible to do that ?
If that so, please leave idea or snippets for me.
Thanks.
if the forms are in separated pages, you can populate values in form two using the $_POST arrays:
page 1
At page2.php, grab values comming from $_POST and populate the form with these values:
Obviously you’ll need to validate $_POST data in page2.php, but that’s another issue…