Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Ok I'm new to PHP and am trying to make an insanely simple login system where if the password is right, it doesn't matter who you are, you're in. So far I have the html page with a form who's action is pass.php. The form's method is "post". Now in pass.php I'm checking if the password that was inputted via a text field equals "pass" for example.Code: Select all
<?php
if($_POST['pass'] == 'pass') {
//im lost here
}
else {
echo("You entered the wrong password.");
}
?>Code: Select all
<a href="file.zip">Download the file</a>Can someone help me?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[color=darkgreen][b]feyd[/b] | "I need hep" doesn't help us help you. Changed to "User downloading files."
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]