Thread: profile script
View Single Post
  #4 (permalink)  
Old May 12th, 2007, 18:44
Accurax Accurax is offline
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: profile script

dont us "_" for your own variables .. eg ; $_Email should just be $email ... dont think it actually has any negative effects ... but its a bad habbit.

Apart from that it looks ok... easy enough to follow .... you might be better off usine $_SESSION[''] as opposed to $_POST to track a logged in user however.

Have you tried to use it yet ?

edit:

Instead of this:
Code: Select all
if($_POST['Uname'] == '')
use :
Code: Select all
if($_SESSION['Uname'] != "yes")
just remember to set $_SESSION['Uname] == "yes" .. when they first log in

Last edited by Accurax; May 12th, 2007 at 18:46.
Reply With Quote