|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a login form page which submits to login.php where I have some error checking. When the page loads, the first error message always gets displayed on screen. When I comment that part out, the secoond gets displayed. When I comment out the whole page, I get a blank page. At one stage, (can't remember how it happened - must have been when I was changing Apache / MySql / PHP versions) soomething else got displayed -- something like "this method is not allowed". Hope this is clear enough. Thanks for your help, Toine |
|
#2
|
||||
|
||||
|
Nope, not clear enough. You'll need to post some code.
|
|
#3
|
|||
|
|||
|
Here's the login form (on login.html):
PHP Code:
and this is login.php: PHP Code:
The error message when I try to log in: Quote:
When I start login.php with PHP Code:
I get a completely blank page! This seems to mean that the input fields get ignored... Hope this is clearer Any ideas? I have searched these forums for similar problems, but found none. Any help would be greatly appreciated. Thanks, Toine |
|
#4
|
||||
|
||||
|
My guess is that register_globals is turned off, so your initial if statement isn't getting the values of the form fields. Use $_POST["txtUsername"] and $_POST["txtPassword"] instead of just $txtUsername and $txtPassword. Also, in the echo statements you list, you're treating $_POST like a function. Use the same syntax I've used above and you should see a difference.
|
|
#5
|
|||
|
|||
|
That worked, thanks!
I must have restored the wrong version after my crash! Looks I've got a lot of re-work ahead of me... Thanks, Toine |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > User input fields not "noticed"? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|