Results 1 to 5 of 5

Thread: Best way to do a login? [Advice Needed, Not Help]

Threaded View

  1. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width