How do this work? (Fill in email)

Discussion in 'PHP' started by pyexpress, Oct 9, 2009.

  1. #1
    How do this work, i have plans to start a lockerz invite site but how can i get this code where people fill in there email and press "submit" and i get there email sendt to me, then i can invite them.

    Example:
    http://lockerzinvites.xtreemhost.com/
    http://www.lockerz-invite.com/

    Here is one example to:
    http://www.lockerzinvitez.com/


    You fill in your email and then press "submit" and get an email back with the text:
    My email is saved for him and he later send me an invite.
    please help.
     
    Last edited: Oct 9, 2009
    pyexpress, Oct 9, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just mail the message to the user and mail the e-mail address to yourself. This is basic stuff. If you're not sure on PHP you should learn some. http://www.phpvideotutorials.com is a great place to begin
     
    JAY6390, Oct 9, 2009 IP
  3. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is there any guide for doing just that?
     
    pyexpress, Oct 10, 2009 IP
  4. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
  5. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    pyexpress, Oct 10, 2009 IP
  6. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Did you even click the second link? it has examples from the first search result that are SIMPLE
     
    JAY6390, Oct 10, 2009 IP
  7. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #7
    Are u ready to pay i have made a site for this purpose see http://lockerz.roundscripts.com/ though i tell them that invite will be sent in few hours after they submit thier mails itself no need to send them email back
     
    Bohra, Oct 10, 2009 IP
  8. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What is the price for a copy?
     
    pyexpress, Oct 10, 2009 IP
  9. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #9
    I will build the script for you for free just give wait for my next post

    -John
     
    jpinheiro, Oct 10, 2009 IP
  10. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks, can you PM me :)
    Maby i can offer you some free links on one of my poker sites.
     
    pyexpress, Oct 10, 2009 IP
  11. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #11
    Well can u explain the concept you will be using from this script ur making
     
    Bohra, Oct 10, 2009 IP
  12. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #12
    
    
    <?php
    if(!isset($_POST['submit']))
    {
    $email = $_POST['email'];
    $myemail = "Youremail@domain.com";
    
    $to      = "$email";
    $subject = 'Subject';
    $message = "Thank you for applying for an invite for Lockerz.com.\r\n \r\n
    
    An invite will be sent to you shortly.\r\n \r\n
    
    Due to the amount of people currently trying to sign up at Lockerz invites are sometimes slow, so please be patient, sometimes invites are received instantly other times they may take a few hours.";
    $headers = "From: $myemail" . '\r\n' . "Reply-To: $myemail" . '\r\n' . "X-Mailer: PHP/" . phpversion();
    
    mail($to, $subject, $message, $headers);
    ?>
    
    Thank you for applying  for an invite for Lockerz.com. <br>
    
    Please check your JUNK folder if you have not received your invite within a few hours, sometimes invites end up in there. 
    
    <?php
    
       
    } else {
    ?>
    
    <form action="" method="post">
    
    Email:<input type="text" name="email">
    <input type="submit" name="submit">
    </form>
    
    
    <?php
    }
    ?>
    
    
    PHP:
     
    jpinheiro, Oct 11, 2009 IP
  13. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thanks, i created a file called:

    "email.php"

    And in the index.htm the form looks like this:

    And i uploaded everything.

    index.htm
    email.php
    style.css
    images

    And i tried the site, filled in another of my emails and got this message instantly when i pressed "submit".
    http://i38.tinypic.com/3167of7.jpg

    And i have changed the code you sendt to me to this:

    What have i done wrong? :(
    Sorry I do not understand I'm very new at this, am very grateful for your help.
     
    pyexpress, Oct 11, 2009 IP
  14. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #14
    did you check your email to see if you received an invite?
     
    JAY6390, Oct 11, 2009 IP
  15. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #15
    he did the script works fully :)

    -John
     
    jpinheiro, Oct 11, 2009 IP
  16. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Yes i did, but didnt recive anything.
    I must have done something wrong.
     
    pyexpress, Oct 11, 2009 IP
  17. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #17
    if you want the email to send to you change this line

    $to = "$email";
    to
    $to = "$myemail";

    also
    this is the message that is being sent to you

    $message = "Thank you for applying for an invite for Lockerz.com.\r\n \r\n

    An invite will be sent to you shortly.\r\n \r\n

    Due to the amount of people currently trying to sign up at Lockerz invites are sometimes slow, so please be patient, sometimes invites are received instantly other times they may take a few hours.";
     
    jpinheiro, Oct 11, 2009 IP
  18. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Yes i did now recive that message to my own email, but i want this to happen:
    When a person fill in his email and press "Submit" i want his email to be sendt to my email "Robingbg@gmail.com".

    Because when i have his email i can send him one invite by copying the email i got to my inbox.

    Thanks.
     
    pyexpress, Oct 11, 2009 IP
  19. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Or shall the index file be in index.php instead of index.htm?
     
    pyexpress, Oct 11, 2009 IP
  20. pyexpress

    pyexpress Peon

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #20
    pyexpress, Oct 11, 2009 IP