password sent by email

Discussion in 'PHP' started by dougvcd, Jul 6, 2008.

  1. #1
    hello all what do i need to do this i have a form to fill out but to stop peeps not being genuine
    they fill in name and email addy
    and submit then auto send them a password so they can then login and finish filling out the rest of the form
    hope you can understand what i mean as i am still newbie
    he he he
    cheers
    Doug
     
    dougvcd, Jul 6, 2008 IP
  2. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Alright, to give you an idea:

    Have your form post to a PHP script.
    Ensure you escape all data, check the email for validity (as best you can) and generate a random password.
    Insert all this into your database.
    Create your email and send it with the correct data filled in.

    And there you go, they have their new pass.

    Dan
     
    Danltn, Jul 6, 2008 IP
  3. deleted-account

    deleted-account Active Member

    Messages:
    655
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    85
    #3
    1. Are you seriously 60? I'm like a quarter of your age!

    2. Do you know any PHP at all? I don't feel like wasting my time explaining to you if you don't understand.
     
    deleted-account, Jul 6, 2008 IP
  4. dougvcd

    dougvcd Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    very little
    but its not a full detail i need just a short way
    they fill out form with name, email then that gets put in database if email is correct and a temp password is emailed back to them with out me having to do any thing
    cheers
    Doug
     
    dougvcd, Jul 6, 2008 IP
  5. deleted-account

    deleted-account Active Member

    Messages:
    655
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    85
    #5
    Well you kinda need to know a bit more than a little to understand how to do this.

    Do you know about MySQL Databases?
     
    deleted-account, Jul 6, 2008 IP
  6. dougvcd

    dougvcd Peon

    Messages:
    267
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok leave it with me for a while and will put what code i have on here and then take it from there
    cheers and thanks
    Doug
     
    dougvcd, Jul 6, 2008 IP