Results 11 to 13 of 13
That admin.php file, have you made that yourself? Because I don't think that it even should work. Sure, I haven't used PHP in a while, but when you log in, ...
- 05-30-2003 #11Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
That admin.php file, have you made that yourself? Because I don't think that it even should work. Sure, I haven't used PHP in a while, but when you log in, the name and passwd variables won't be set, and therefore it will just continue to the displayForm() part.
- 05-30-2003 #12Just Joined!
- Join Date
- May 2003
- Posts
- 10
Hi,
I didn't get your message. Why won't the username and password variables get set, the same code works perfect when I hosted it in a Windows machine using phymyadmin. Its just that it isnt working on a Linux box.
- 05-30-2003 #13Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I don't know anything about using this stuff on Windows, but I'm pretty sure that POST data sets global variables like that. You have to retrieve them through the HTTP_POST_VARS array. Try adding this right after the session_start line:
Code:if(isset($HTTP_POST_VARS["name"])) $name = $HTTP_POST_VARS["name"]; if(isset($HTTP_POST_VARS["passwd"])) $name = $HTTP_POST_VARS["passwd"];


Reply With Quote
