Here's what i'm trying to do: i have a page, with a form, where a user selects a templete via radio button, click ok, and then is sent to the next page, where they make another choice, and so on. The values are all in radio buttons, so what i'm trying to do is that the value would be passed on to the next page, etc. So that when the user is on the very last page, they can see all the choices they have made. Here is what i have so far:
$temp1 = 'unchecked';
$temp2 = 'unchecked';
$temp3 = 'unchecked';
if (isset($_POST['Submit'])) {
$tempid = $_POST['tempid'];
if ($tempid == 'temp1') {
$temp1 = 'checked';
}
elseif ($tempid == 'temp2') {
$temp2 = 'checked';
}
else($tempid == 'temp3') {
$temp3 = 'checked';
}
}
and then the HTML section is here:
<h1>Choose your templete and click OK </h1>
<form id="templetes" name="templetes" method="post" action="">
<!-- Templete 1--><label>
<input name="temp1" type="radio" value="radio" />
<img src="templetes/templete1.jpg" alt="templete1" width="195" height="234" border="0" /></label>
<br /><br />
<!--Templete 2 --><label>
<input name="temp2" type="radio" value="radio" />
<img src="templetes/templete2.jpg" alt="templete2" width="183" height="228" border="0" /> </label>
<br /><br />
<!--Templete 3 --><label>
<input type="radio" name="temp3" value="radio" />
<img src="templetes/templete3.jpg" alt="templete3" width="174" height="230" border="0" /></label>
<br /><br />
<input type="submit" name="Submit" value="OK" />
</form>
I have a feeling that the code is not all correct, so please let me know.
Now i need to pass the value to the next page, but it cannot be visible yet. it has to be in the url, and then another value whould be added, and both will be passed on through to the third page. ex: templetechoice.php is the first page. depending on the templete they choose, the url on the next page could be choosebackground.php?tempid=1 , and the next one would be choosemusic.php?tempid=1&backround=2, etc.
Can someone please help me with doing that?
thanks in advance.