|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Reply
no code works
only thing that will work is <?php echo "It is working"; ?> |
|
#2
|
|||
|
|||
|
...then it's obviously working!
What does your other code do? |
|
#3
|
||||
|
||||
|
Welcome to the forums, Makka.. Please referr to the rules in the future when posting
Titles such as "Help" "Reply" etc usually don't give people a good idea about what you're needing help with... ![]() What exactly are you trying to do? Do you have some sample code you can give us to look at so we can help you through it? Are you getting error messages? No output? What's going on? Let us know and we'll help you as much as we can! ![]() |
|
#4
|
|||
|
|||
|
whoops
it seems i pressed the new thread button rather than the reply button. lol how silly of me
Well i have set up an apache server on my pc just to test my scripts on localhost but it only echos the things. It wont carry out functions. This is the variable login script. <?php //variables $pwd = "password"; ?> <form name = "login"> <input type = "text" name = "pass" value = ""> <input type ="submit" value = "submit"> </form> <?php if ($pass == $pwd) ?> THE PROTECTED PAGES HTML GOES HERE Please help and i dont get no errors it just does not do any thing and all help is appreciated |
|
#5
|
||||
|
||||
|
ok.. where is your start of your form tags? like
<form name="frmLogin" action="/index.php" method="post"> ? also.. by default global_vars = off.. so you may need to get your form information via this kind of method PHP Code:
|
|
#6
|
|||
|
|||
|
Re: whoops
What script processes your form? Is it just meant to retrieve the same page, but with a password? Your form action needs to be set to the name of the script that will evaluate the form, even if it's just the same page. Assuming your page is called index.php, then have form action="index.php", or use $PHP_SELF.
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Reply |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|