Page 1 of 1

l

Posted: 08 Feb 2011, 09:18
by atlem
l

Re: Php editor

Posted: 08 Feb 2011, 13:48
by Pars

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>
Ikke fordi jeg er nogen haj til PHP eller noget, men din <input type=submit value="GO!`><p> mangler den ikke et "

Re: Php editor

Posted: 08 Feb 2011, 14:08
by atlem
l

Re: Php editor

Posted: 08 Feb 2011, 16:30
by Pars
hehe, så var det noget med " eller ', det er altid med PHP... eller et ;

Re: Php editor

Posted: 08 Feb 2011, 16:51
by atlem
l