I think I might have a problem with my code. I am using this form:
HTML Code:
<form method="post" name="name" action="registry.php">
<input type="text" name="name" class="cleardefault" size="20" value="Enter Name" /><br />
<font size="-2" color="#0099FF">(Use ALL lowercase letters)</font><br /><br />
<input type="submit" name="Submit" value="Submit" />
and this is registry.php
PHP Code:
<?php
if(isset($_POST['Go'])){
$name = strip_tags($_POST['name']);
switch($name){
case "Bob":
$page = 'Bob.html';
break;
case "Bill":
$page = 'Bill.html';
break;
case "Bart":
$page = 'Bart.html';
break;
default:
$page = "http://www.google.com";
break;
}
header("Location:$page");
}
?>
Didn't really change anything. When I submit the form it just goes to the blank registry.php page and does not display an error. I am assuming I'm not passing the information to the script correctly?
I am really new to all of this, so it's probably something really simple or stupid, but thanks for your patience and help!
Bookmarks