View Single Post
  #13  
Old 05-16-2008, 06:49 PM
Watdaflip's Avatar
Watdaflip Watdaflip is offline
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,640
Default Re: How to display database records on screen?

Hey

I'm sorry I asked for the code of the wrong page. Whats the code for "Profile.php"

I'm thinking there is a condition on this page that has it redirect back to your login, and because of some bug or logical error that condition is being met, which is causing the loop. That is to say your login form is redirecting to profile.php because it just logged you in. When you get to profile.php, its not validating that login to its redirecting back to the login page.

On a side note:
In your script, all of your posted variables are not being properly registered. (As it is now they will still work, I will explain this in the next paragraph). For each variable like $s1, $username1, or $password1 you need to either change each to $_POST['s1'], or before they are used in the script assign each to their posted value, such as $s1 = $_POST['s1'];

As it is now, it is using what is called register_globals, which is obsolete feature. A feature disabled by default in php5, and a feature that won't be present at all in php6. Using it will very likely cause your script to not work at some point. If you plan on using this script (once working that is) for an extended period of time (for years to come) you need to make sure it doesn't rely on register globals.
__________________

Register/Login Script
Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script
Reply With Quote