Passing variables from form to form
Posted: Fri Sep 19, 2008 1:18 pm
Hello!
I'm currently working on a site for for a small insurance agency and they have a 'enter your zip and get a quote' form input on the homepage and subpages, what I am trying to accomplish is getting that zip code to pass into the quote form on another page.
I've setup a test here, and it's simple enough to get working in regular old php, but I for the life of me haven't been able to figure out how to get this simple function -
To work inside {php} tags. (They're turned on in the config.php)
Any help would be greatly appreciated as I'm at my wits end on this one. Thanks in advance!
I'm currently working on a site for for a small insurance agency and they have a 'enter your zip and get a quote' form input on the homepage and subpages, what I am trying to accomplish is getting that zip code to pass into the quote form on another page.
I've setup a test here, and it's simple enough to get working in regular old php, but I for the life of me haven't been able to figure out how to get this simple function -
Code: Select all
<?php
$zip = $_POST['zip'];
echo "<input type=\"text\" value=\"$zip\" >";
?>
Any help would be greatly appreciated as I'm at my wits end on this one. Thanks in advance!