1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Appending email with PHP

Discussion in 'CPA' started by StarBeltMarketer, Mar 11, 2009.

  1. StarBeltMarketer

    StarBeltMarketer Junior Member

    Joined:
    Feb 26, 2009
    Messages:
    149
    Likes Received:
    45
    Hello, I need to know how to append an email into a URL when someone types it into a submit form.

    I need to know how to add some extra characters to there email, in other words a sub id.

    Hope this makes sense. I appreciate the help.

    Thanks,
     
  2. the_demon

    the_demon Jr. Executive VIP

    Joined:
    Nov 23, 2008
    Messages:
    3,177
    Likes Received:
    1,563
    Occupation:
    Search Engine Marketing
    Location:
    The Internet
    Are you trying to make it so the url looks like this:

    mywebsite.com/customer.php?email_id=custtomeremail@website.com
     
  3. TheLoser

    TheLoser Registered Member

    Joined:
    Feb 5, 2009
    Messages:
    72
    Likes Received:
    13
    <?php

    $emailModified = $_REQUEST['emailAddyFromForm'] . "whatever you need to add here";

    ?>
     
  4. StarBeltMarketer

    StarBeltMarketer Junior Member

    Joined:
    Feb 26, 2009
    Messages:
    149
    Likes Received:
    45
    Thank you guys. I will try that. That looks like what I'm looking for. But just in case that doesn't work, more specifically what I need is if someone clicks on my link the next page will ask for the email then the php code will append their email to my url but at the same time I need it to also ad "&s1=" just before their email address. the "&s1=" without the quotes means its a sub id. So for instance if they click my maxbounty link which would look something like this:
    hxxp://.mb01.com/lnk.asp?o=26&c=233&a=1000 Then after they click
    continue it will be able to track the user so it will end up looking
    like this:
    hp://.mb01.com/lnk.asp?o=26&c=233&a=1000&s1=submember@mysite.com

    Notice the &s1= at the end of my link and just before their email

    Anyway thanks guys