This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes PHP and the fly likes undefined variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "undefined variable" Watch "undefined variable" New topic
Author

undefined variable

egbai mmumene
Ranch Hand

Joined: Sep 18, 2012
Posts: 43
hi, i"m having a problem when i am redirecting from my sign in page to the home page. the session variable is not being passed more over my authentication logic seems to be not working out, it seems like the variable gets to the home page but when i try to pass it through the URL it doesn't work. here is my code.
the validation page


HOME PAGE


Nick Charles
Ranch Hand

Joined: Oct 09, 2011
Posts: 71

I don't see a <form> tag in your home page, so there is no way to fill in the 'user' and 'pass' varaibles you are referencing in your authentication script.

There are several tutorials for php authentication using mysql on the web, perhaps one of those would help you.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: undefined variable
 
Similar Threads
difficulty in login in one attempt
phpmailer. can not connect to server
i need help on loggin account limit
Javascript and PHP
Java Applet Logon Post to PHP