processing forms
Posted: Sat Aug 07, 2004 5:15 pm
I have a form like this:
And I need to make get.php redirect to the selected page. This is what I have so far:
But that doesn't work. Please help.
Thanks!
Code: Select all
<form method="get" name="url" action="get.php">
<select name="url">
<option value="contact_me.php">contact</option>
<option value="blog">blog</option>
<option value="forum">forum</option>
</select>
<input type="submit" value="go">Code: Select all
<?php
$get = $_POST['url']
header("Location: "$get"");
exit;
?>Thanks!