Very new to php and can't get this working can you please help.
Once it is working i will use htacess to password the directory and another php form to add customer numbers to the redirect.php. this will allow a user to enter their client numer into the form and be sent to their password protected directory. I have looked at login scripts and can't find a simple one that will do what I want which is why I am going down this route.
Hi this is the code for my html form:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form method="POST" action="redirect.php">
Username: <input type="text" name="username" size="15" />
this is the code for the redirect.php
// login page redirection