I have a form that points to a php file. all the php file does is redirects the user to a specific page. I cannot seem to get it to work and im not sure what i am doing wrong.
<form method="post" action="processRegister.php">
User Name: <input type="text" name="userName" maxlength="32"><br>
Password: <input type="password" name="userPassword" maxlength="32"><br>
<input type="submit">
</form>
processRegister.php
<?php
// processRegister.php
//////////////////////
header("Location: http://www.google.com/");
/*
// First include the class definition
include('UserClass.php');
// Next, create an instance of the class
$newUser = new User;
// Call the registerUser() method, passing in the required variables
if ($newUser->registerUser($userName, $userPassword)) {
header('Location: www.google.com');
}
else {
header('Location: www.yahoo.com');
}
*/
?>