1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Confirming an email address...

Discussion in 'Programming' started by ian_ok, Mar 31, 2005.

  1. #1
    I have visitors who submit reports on accommodation etc and i now want to be able to automatically confirm that the email address they give is valid.

    I.e. the fill in a form, click submit, they then get an email which says click here to confirm this email was sent by you. I am then informed and can then add the article.


    How can i go about this, at the moment my mail form's are PHP.

    Thanks for any pointers tips etc...

    Ian
     
    ian_ok, Mar 31, 2005 IP
  2. mushroom

    mushroom Peon

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
  3. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Mushroom, but I have that type of validation already in my php script.

    This is what i am after.....

    The client fills in a form on my website with an article.
    They click submit.
    They then get an email which says click here to confirm this email was sent by you.
    This directs them to a confirmation screen on mywebsite.
    I am then informed and can then add the article.

    Ian
     
    ian_ok, Apr 1, 2005 IP
  4. mushroom

    mushroom Peon

    Messages:
    369
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here how I would do it
    1. make a unique id with
    $id=uniqid("cfr",true);
    $id=str_replace(".","C",$id);
    PHP:
    2. save post in db with this id (char26)
    3. send e-mail with link "www.dom.com/a_folder/confirm.php?action=$id"
    4. write a script in "a_folder/comfirm.php" to handle the input var "action" etc.
     
    mushroom, Apr 1, 2005 IP
  5. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks mushroom, will have a go......

    Ian
     
    ian_ok, Apr 2, 2005 IP