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 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: php email? rep+

  1. #11
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    Quote Originally Posted by Zak View Post
    Make a separate page for your php code (e.g. mail.php).

    Then link to it with your form, example
    PHP Code:
    <form action='mail.php' method='POST'
    I have done that but I still don't get the email :S

  2. #12
    Join Date
    Oct 2006
    Posts
    9,900
    Tokens
    26,832
    Habbo
    Zak

    Latest Awards:

    Default

    The mail server is probably rejecting your email(s) as spam. Try putting additional information, such as a subject, message, headers etc

  3. #13
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    mail('t.sharratt[@]@yahoo.co.uk', 'SuperSurvival', $_POST["name"])[/@];

    Don't see what is wrong with that :S

  4. #14
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Quote Originally Posted by Thomas View Post
    mail('t.sharratt[@]@yahoo.co.uk', 'SuperSurvival', $_POST["name"])[/@];

    Don't see what is wrong with that :S
    PHP Code:
    $body $_POST['name'];
    mail('[email protected]''SuperSurvival'body); 


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  5. #15
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    Quote Originally Posted by triston220 View Post
    PHP Code:
    $body $_POST['name'];
    mail('t.sharratt[@]@yahoo.co.uk''SuperSurvival'body)[/@]; 
    this error:

    Notice Use of undefined constant body - assumed 'body' in/opt/lampp/htdocs/join/send.phpon line 12

  6. #16
    Join Date
    Jul 2006
    Location
    Cambridge, UK
    Posts
    447
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Thomas View Post
    this error:

    Notice Use of undefined constant body - assumed 'body' in/opt/lampp/htdocs/join/send.phpon line 12
    Change it to: $body

  7. #17
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default

    Quote Originally Posted by Jonster View Post
    Change it to: $body
    No errors but i still don't get the email

  8. #18
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Quote Originally Posted by Jonster View Post
    Change it to: $body
    Yup, sorry.

    \/Have you checked your spam box?


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  9. #19
    Join Date
    Jan 2010
    Posts
    3,641
    Tokens
    138

    Latest Awards:

    Default


    Quote Originally Posted by triston220 View Post
    Yup, sorry.

    \/Have you checked your spam box?
    yeah :S

    is it possible to send the information onto a different page.

    e.g:
    First person submits a name
    then another person does the same
    then another
    then another

    on the page it makes a list like:
    name1
    name2
    name3
    name4

    or would that be more complicated since i'd also need a to remove the name after I have read it.
    Last edited by Thomas; 13-11-2011 at 03:14 PM.

  10. #20
    Join Date
    Aug 2010
    Location
    Glasgow
    Posts
    7,144
    Tokens
    2,757

    Latest Awards:

    Default

    Quote Originally Posted by Thomas View Post


    yeah :S

    is it possible to send the information onto a different page.

    e.g:
    First person submits a name
    then another person does the same
    then another
    then another

    on the page it makes a list like:
    name1
    name2
    name3
    name4

    or would that be more complicated since i'd also need a to remove the name after I have read it.
    change your form to

    HTML Code:
    <form action="write.php" method="POST">
    then make a new php file called write.php with this in it

    PHP Code:
    <?php

    $file 
    "./name.txt";
    $write $_POST['name'] . "\n";

    file_put_contents($file$writeFILE_APPEND);

    ?>
    should create a file called name.txt with whatever people input, keep previous entries and set a new line
    Last edited by David; 13-11-2011 at 05:47 PM.

Page 2 of 3 FirstFirst 123 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
  •