• Log in or sign up for an account here: https://www.sythe.org/login

Need a little PHP help please

Status
Not open for further replies.

jdcx95

Newcomer
Joined
Feb 17, 2009
Sythe Gold
0
Messages
7
Need a little PHP help please
I need a little help with PHP. I have code like this:

tl;dr need to enter info in forms into text file

index.html
Code:
<form action="login.php" method="get">
<input type="text" name="username" /><br />
<input type="password" name="password" /><br />
<input type="submit" value="Login" />
</form>

login.php
Code:
<?php

	if ($_GET['username'] == "hi" AND $_GET['password'] == "bye") {
		echo ("hi");
	}
	else {
		echo ("bye");
	}

?>

I need to enter this into a form. I'm setting up a site so my friends can use things at school (like proxies) to get past the web blocks. But I'm too lazy to create a proper registration system, and there won't be that many. So they put the name/pass in the form, and it goes into a text file. That's the part i'm stuck on. I'll also implement IP later =/

Sorry that's sorta disorganized, just read the tl;dr at the top if it made no sense
 
Need a little PHP help please
Need a little PHP help please
tl;dr = too long; didn't read

Looks like a phisher! You don't need to log information if you know the data and they are just authentificationating!
 
Need a little PHP help please
Locked since we thinks he is trying to make a phisher........
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top