I have a couple forms on my website. The first form is a contact form that creates a user in infusionsoft. The next form is a personalized quote form that emails me and calculates a quote based on information provided. I am trying to find out how to take some of the information from the first form and prepopulate the second form? I put value=’<?=$_GET['FirstName']?>’> in the fields of the first form and it attaches the info to the url. but the next form is not getting the information. Can anyone help with this?
The second form is not on the next page. It is a fill in form on the first page then goes to the site which has 4 pages. The next form is the quote form on page 4. Can you tell me how to populate the fields from the input of the first form?
The second form is not on the next page. It is a fill in form on the first page then goes to the site which has 4 pages. The next form is the quote form on page 4. Can you tell me how to populate the fields from the input of the first form?
Oh okay. You can just use SESSION and also, you may want to POST instead of GET To grab the info is really easy. On the second page, you'd put session_start(); $_SESSION['FirstName'] = $_POST['FirstName']; Code (php): Then you can grab that data anytime you want. So on the last form, you would just do <? php session_start(); $firstname = $_SESSION['FirstName'] ?> <input value = '<?php echo $firstname; ?>' ..... Code (php):
Ok so the fields I want to populate are First Name, Last Name, Email, Company Name, and Phone Number. Do I do that for all fields. I have no knowledge in script at all and have been attempting to find things online and piece them together. not working so well.
Yup, you would have to store every input in the session array. Google PHP Session and you should be able to find some easy tutorials