| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Login page problems | |
|---|---|
| Tweet Topic Started: Jun 27 2005, 04:52 PM (259 Views) | |
| blakeo_x | Jun 27 2005, 04:52 PM Post #1 |
![]()
I cant believe its not PHP!
![]() ![]() ![]() ![]() ![]()
|
I have this page where two people can log in to view this other page. Im not using a database to check the name/password since its only two people. Instead, Im storing the combinations in an array. The arrays look like this:
The login page submits the form to the PHP file. The form contains two fields: user and password. The PHP file puts the two together so it can be compared to $user_data. So, the entire block of code that is really giving me problems looks like this:
Now, the problem is the PHP code above isnt making a correct comparison for some reason. Even when the correct user/password combination is given, it isnt executing the if statement. Why is this? (I hope I gave enough info and I wasnt too confusing )
|
![]() |
|
| kingy | Jun 29 2005, 01:44 PM Post #2 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
try using quotes in your array variables, like $array['variable'] |
![]() |
|
| solinent | Jun 29 2005, 08:51 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Here:
|
![]() |
|
| blakeo_x | Jun 29 2005, 10:32 PM Post #4 |
![]()
I cant believe its not PHP!
![]() ![]() ![]() ![]() ![]()
|
Ok, thanks. Problem solved |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
5:32 PM Jul 11
|




![]](../../../../0/1/0/p601690/pipright.png)
)



5:32 PM Jul 11