File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "undefined variable" Watch "undefined variable" New topic

undefined variable

egbai mmumene
Ranch Hand

Joined: Sep 18, 2012
Posts: 46
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


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.
I agree. Here's the link:
subject: undefined variable
It's not a secret anymore!