l

Alt ikke releteret til Minecraft eller crafters.dk.
Post Reply
User avatar
atlem
Posts: 251
Joined: 12 Dec 2010, 15:39
Location: norway

l

Post by atlem »

l
Last edited by atlem on 02 Apr 2011, 01:06, edited 2 times in total.
User avatar
Pars
Posts: 1165
Joined: 06 Nov 2010, 10:03
Location: København

Re: Php editor

Post 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 "
User avatar
atlem
Posts: 251
Joined: 12 Dec 2010, 15:39
Location: norway

Re: Php editor

Post by atlem »

l
Last edited by atlem on 23 Feb 2011, 23:51, edited 1 time in total.
User avatar
Pars
Posts: 1165
Joined: 06 Nov 2010, 10:03
Location: København

Re: Php editor

Post by Pars »

hehe, så var det noget med " eller ', det er altid med PHP... eller et ;
User avatar
atlem
Posts: 251
Joined: 12 Dec 2010, 15:39
Location: norway

Re: Php editor

Post by atlem »

l
Post Reply