variable problem...
Posted: Wed Jan 05, 2005 7:26 am
I have created two pages. The first one has an option menu and the second one has a header function so I can redirect the user depending the option he made in the first page. Do u know how can i use the option variable of the first page to the second one?
first page
second page
feyd | Help us, help you. Please use
first page
Code: Select all
<html>
<body onload=setfocus() bgcolor="#FFEECE">
<table cellpadding="20" align="center">
<form action="check.php" method="post" name="form" id="form">
<table>
<tr><select name="check" onChange="submit()">
<option value="0" selected>&nbsp;</option>
<option value="1">option1</option>
<option value="2">option2</option>
<option value="3">option3</option>
</select></tr>
</table>
</form>
</td></tr></table>
</html>second page
Code: Select all
<?php
if (&check=1) {
header("Location: http://www.mysite1.org/");
else
{
header("Location: http://www.mysite2.org/");
}
?>feyd | Help us, help you. Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]