Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default Form Help! [+rep]

    Right i got this and i want it to send to my e-mail this is the code

    HTML Code:
    <form method="POST" action="--WEBBOT-SELF--">
      <!--webbot bot="SaveResults" u-file="fpweb:///_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><p align="left">
    <font size="1" face="Verdana"><b>Your dry Script:<br>
    <input type="text" name="T1" size="61" value="Your 15 Word Dry"></font> <br>
    Your e-mail Address ( your order payment link will be sent to when its done)<br>
    <input type="text" name="T2" size="61"><br>
    Msn (if you want it delivered fast) <br>
    <input type="text" name="T3" size="61"><br>
    <input type="submit" value="Order" name="B1"></b></font></form>
    I want so when you pres submit it send to my e-mail

    I have asked because I want it to be on the same page not /sendmail.php or what ever...

    +rep and one who can do.. Thank you!

    Jamieb

  2. #2
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    PHP Code:
    <?php
    if($_GET['send'] == "yes"){
    $a $_POST['T1'];
    $b $_POST['T2'];
    $c $_POST['T3'];
    //
    $to "your emails";
    $message "
    1 = 
    $a
    2 = 
    $b
    3 = 
    $c
    "
    ;
    $subject "subject here";
    $mail_sent = @mail$to$subject$message );
    echo 
    $mail_sent "Sent" "Error";
    }
    ?>
    <form method="POST" action="?send=yes">
      <!--webbot bot="SaveResults" u-file="fpweb:///_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><p align="left">
    <font size="1" face="Verdana"><b>Your dry Script:<br>
    <input type="text" name="T1" size="61" value="Your 15 Word Dry"></font> <br>
    Your e-mail Address ( your order payment link will be sent to when its done)<br>
    <input type="text" name="T2" size="61"><br>
    Msn (if you want it delivered fast) <br>
    <input type="text" name="T3" size="61"><br>
    <input type="submit" value="Order" name="B1"></b></font></form>
    Not tested let me know if u need help


  3. #3
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Quote Originally Posted by Luno1599 View Post
    PHP Code:
    <?php
    if($_GET['send'] == "yes"){
    $a $_POST['T1'];
    $b $_POST['T2'];
    $c $_POST['T3'];
    //
    $to "your emails";
    $message "
    1 = 
    $a
    2 = 
    $b
    3 = 
    $c
    "
    ;
    $subject "subject here";
    $mail_sent = @mail$to$subject$message );
    echo 
    $mail_sent "Sent" "Error";
    }
    ?>
    <form method="POST" action="?send=yes">
      <!--webbot bot="SaveResults" u-file="fpweb:///_private/form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><p align="left">
    <font size="1" face="Verdana"><b>Your dry Script:<br>
    <input type="text" name="T1" size="61" value="Your 15 Word Dry"></font> <br>
    Your e-mail Address ( your order payment link will be sent to when its done)<br>
    <input type="text" name="T2" size="61"><br>
    Msn (if you want it delivered fast) <br>
    <input type="text" name="T3" size="61"><br>
    <input type="submit" value="Order" name="B1"></b></font></form>
    Not tested let me know if u need help
    That should work.

  4. #4
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    When i pressed submit it went to

    Not Found
    The requested URL /--WEBBOT-SELF-- was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/1.3.39 Server at Port 80

  5. #5
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    PHP Code:
    <?php
    if($_GET['send'] == "yes"){
    $a $_POST['T1'];
    $b $_POST['T2'];
    $c $_POST['T3'];
    //
    $to "your emails";
    $message "
    1 = 
    $a
    2 = 
    $b
    3 = 
    $c
    "
    ;
    $subject "subject here";
    $mail_sent = @mail$to$subject$message );
    echo 
    $mail_sent "Sent" "Error";
    }
    ?>
    <form method="POST" action="?send=yes">
    <p align="left">
    <font size="1" face="Verdana"><b>Your dry Script:<br>
    <input type="text" name="T1" size="61" value="Your 15 Word Dry"></font> <br>
    Your e-mail Address ( your order payment link will be sent to when its done)<br>
    <input type="text" name="T2" size="61"><br>
    Msn (if you want it delivered fast) <br>
    <input type="text" name="T3" size="61"><br>
    <input type="submit" value="Order" name="B1"></b></font></form>
    Use this one


  6. #6
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    now its saying

    Method Not Allowed
    The requested method POST is not allowed for the URL /products.htm.

    Apache/1.3.39 Server at Port 80

  7. #7
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Dose your host alow PHP :S and what version u running


  8. #8
    Join Date
    Nov 2006
    Location
    Cheshire.
    Posts
    730
    Tokens
    250

    Default

    Quote Originally Posted by Jamieb View Post
    now its saying

    Method Not Allowed
    The requested method POST is not allowed for the URL /products.htm.

    Apache/1.3.39 Server at Port 80
    Rename it products.php, as it is using php.


    Give us an add like!

  9. #9
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Oh ye didnt see that do that then it will work


  10. #10
    Join Date
    Oct 2006
    Location
    BUXTON
    Posts
    2,191
    Tokens
    0

    Latest Awards:

    Default

    +rep thanks Luno

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •