l
- Pars
- Posts: 1165
- Joined: 06 Nov 2010, 10:03
- Location: København
Re: Php editor
Code: Select all
<html>
<head />
<body>
<form action=`index.php` method=post>
username: <input type=text name=user><br />
password: <input type=password name=pass><br />
<input type=submit value="GO!`><p>
</form>
<?php
$user=$_POST[`user`];
$pass=$_POST[`pass`];
if (($user==`atlem")&&($pass==`poo`)) echo `accsess granted!";
else echo `access denied!";
?>
</body>
</html>
- atlem
- Posts: 251
- Joined: 12 Dec 2010, 15:39
- Location: norway
- Pars
- Posts: 1165
- Joined: 06 Nov 2010, 10:03
- Location: København
Re: Php editor
hehe, så var det noget med " eller ', det er altid med PHP... eller et ;