Hi,
I'm having problems getting vars from input text boxes to another page. I'm not new to PHP and I've never had a problem like this before, but this time I have the form and input box html in a variable, which I then print on the screen:
if((!$id) || ($id == 0)){
$status.= '<p class="margin">';
$status.= 'Login<br>';
$status.= '-------+<br><br>';
$status.= 'Username:<br><br>';
$status.= '<form action="redirect.php" method="post">';
$status.= '<input type="text" name="username" width="20"><br><br>';
$status.= 'Password:<br><br>';
$status.= '<input type="password" name="password" width="20"><br><br>';
$status.= '<input type="submit" value="Login">';
$status.= '</form>';
$status.= '<p> </p>';
$status.= '</p>'; }
And then on the following page (redirect.php) my script checks my database for the username, but for some reason what ever is typed into the username box, the result is always null.
Does anyone have a solution to this?
Thanks.