Jump to content

cbox


Recommended Posts

Posted (edited)

Ok, I was making a very simple login where you just need the password. The password is in the file "password.php". Well, it doesn't matter what I put in it takes me to the site. Even if there's nothing in the box. How do I make it check if the password inputted is the same as the password in password.php?

 

Here's the code I've written so far.

 

<form action="indexx.php" method="post">
<input type="hidden" name="file" value="password.php">
<input type="password" name="password"><br /><br />
<input type="submit" value="submit"</form>

 

Note: Yes I know the isn't really secure but It was just a very simple login that I would edit later.

Edited by Random1225
Posted (edited)
Is there only one password in the password.php or is there multiple?

There's one password. It was just going to be that you needed to know what the password was or be smart enough to know how to get it to enter the site.

 

You could also just enter the password in value=

 

then that would be the only password allowed.

 

 

Also is your index really called indexx or is that typo? That would create an error if that was wrong.

 

I guess I'll do that and no its not a typo.

Edited by Random1225

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...