Return to Snippet

Revision: 11459
at February 6, 2009 07:35 by iroybot


Initial Code
<form method="post"action="">
<p />User: <input type="text" name="user" />
<p />Passwort: <input type="password" name="pw" />
<p /><input type="submit" />
</form>
<?
$_SERVER['PHP_AUTH_USER'] = $_POST['user'];
$_SERVER['PHP_AUTH_PW'] = $_POST['pw'];
header('Location: http://deinedomain.tld/login/'.$_POST['user']);
?>

Initial URL


Initial Description


Initial Title
Basic PHP Login and Forwarding

Initial Tags
login, php, user

Initial Language
PHP