Hi experts,
I'm extreme beginner in PHP.My problem is that,i've an html page and there's combobox on it,I want to load the form according to the selection of items.
The html page is
<form action="search.php" method="post">
<select name="option" size="1">
<option value="1">value1</option>
<option value="2">value2</option>
<option value="3">value3</option>
<option value="4">value4</option>
</select>
<input type="submit" />
</form>
and the search.php:
<?php
$v = $_POST['option'];
if($v==1)
{
?>
<form method="get" action="page1.php"></form>
<?php
}
if($v==2)
{
?>
<form method="get" action="page2.php"></form>
<?php
}
if($v==3)
{
?>
<form method="get" action="page3.php"></form>
<?php
}
if($v==4)
{
?>
<form method="get" action="page4.php"></form>
<?php
}
?>
I want to navigate through the page according to the value in the variable v.
Thanks in advance.