|
-
Apr 5th, 2007, 04:37 PM
#3
Re: Best way to do a login? [Advice Needed, Not Help]
I am glad I am not your client 
- It is not very secure as you are not escaping the variables. Well, you are but after you have put them inside the string.
- If you receive and error while connecting, you should end the script not echo a message and try to continue.
- Why use Javascript to redirect the page, why not just use:
PHP Code:
header('Refresh: 3; url=' . $path_to_new_script);
- Your script should when it fails redirect the user to an error page rather than displaying a single line, unfriendly error message.
Last edited by visualAd; Apr 5th, 2007 at 04:43 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|