evo ti:
index.html:
------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="next.php">
<p>1
<input type="text" name="textfield" />
</p>
<p>2
<input type="text" name="textfield2" />
</p>
<p>
<select name="select">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</p>
<p>
<input type="submit" name="Submit" value="Submit" />
</p>
</form>
</body>
</html>
-------------
next.php:
--------------
<?
switch ($_POST["select"])
{
case '1': header("Location: 1.php");break;
case '2': header("Location: 2.php");break;
case '3': header("Location: 3.php");break;
}
?>
---------
1.php:
---------
<?
echo 'Stranica 1';
?>
---------
2.php:
----------
<?
echo 'Stranica 2';
?>
------------
3.php:
------------
<?
echo 'Stranica 3';
?>
-------------