Skip navigation
Jamie McInnes
Currently Being Moderated

PHP Coding

Feb 15, 2014 5:18 PM

Tags: #php #coding

I have created a Register page for my website using php, i want it to redirect the user back to the home screen once they have signed up.

i also what it to send  a email verification to the user once they completed the forum.

 

Can anyone help me

 
Replies
  • Currently Being Moderated
    Feb 16, 2014 4:26 AM   in reply to Jamie McInnes
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2014 6:20 AM   in reply to Jamie McInnes

    Jamie McInnes wrote:

     

    I have created a Register page for my website using php, i want it to redirect the user back to the home screen once they have signed up.

    i also what it to send  a email verification to the user once they completed the forum.

     

    Can anyone help me

     

    Have you built these pages with the DW server behaviours?

     

    If you have normally you can select a page to go to IF the process was suceessful, have you done that.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2014 8:51 AM   in reply to Jamie McInnes

    The script Ben linked to is pretty good, but I will point out the following:

     

    1. Only the email address is verified. The password and name are allowed without the slightest sanitizing.
    2. Passwords are stored in the database un-encrypted.
    3. One should always use bound parameters on forms open to the public. (Anyone who doesn't know what that means needs to find out ASAP)
    4. The HTML input attribute "required" can be used to check fields prior to submission.
    5. The HTML5 email input type can be used. (older browsers will just treat it as text, so you still need to verify and sanitze after submission)
    6. The form checks to see if the email address has been used, but doesn't give the option to retrieve or reset a lost password, and we all know how often passwords get lost.This can be achieved by sending an email with a link to re-set the password. We've all see this routine (because we've all lost passwords).
    7. PHP has built-in filters that can be used to check the email address and other fields.

     

    I didn't mean to rip this script. Certainly it is a good place to start. I thought point 1 was worth making, so I decided to mention other things I thought of as well.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points