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 21
  1. #11
    Join Date
    Aug 2010
    Location
    London
    Posts
    312
    Tokens
    359
    Habbo
    Fraged

    Default

    Sorry for late reply young chap.

    But can you help with another thing:

    <?
    $email = $_GET['email'] ;
    $subject = $_GET['subject'] ;
    $message = $_GET['message'] ;
    mail( "[email protected]", "Email Subject", $subject, $message, "From: $email" );
    print "Congratulations your email has been sent";
    ?>

    layer it out in the email like:

    Name
    Subject
    Email
    Message


    Thanks geez

  2. #12
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    Ermm from the top of my head:

    PHP Code:
    <?
    $name 
    $_GET['name'] ;
    $email $_GET['email'] ;
    $subject $_GET['subject'] ;
    $message "Name: \r\n" $name"\r\n Subject:\r\n" $subject "\r\n Email: \r\n" $email "\r\n Message: \r\n" $_GET['message'];
    mail"[email protected]""Email Subject"$subject$message"From: $email);
    print 
    "Congratulations your email has been sent";
    ?>
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  3. #13
    Join Date
    Aug 2010
    Location
    London
    Posts
    312
    Tokens
    359
    Habbo
    Fraged

    Default

    Mhmm, Cheers big ears.

    Ill message if i need more help

  4. #14
    Join Date
    Nov 2006
    Location
    Narrich
    Posts
    5,687
    Tokens
    0
    Habbo
    Jamesy...

    Latest Awards:

    Default

    no worries (H)
    Ex-janitor. Might pop in from time to time, otherwise you can grab all my information from http://jamesy.me.uk/

  5. #15
    Join Date
    Aug 2010
    Location
    London
    Posts
    312
    Tokens
    359
    Habbo
    Fraged

    Default

    Hey, im having problems, applications aren't comming to my email for some reason. Some help?

  6. #16
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    The problem I see is that your form method is set to post (method="post") and you are using $_GET to get it... ($_GET["message"]).. this would be true if your form method was get...

    Try changing it to $_POST["message"] and you should have it

  7. #17
    Join Date
    Aug 2010
    Location
    London
    Posts
    312
    Tokens
    359
    Habbo
    Fraged

    Default

    Thanks, but it still didn't work

    Could anyone else help?

  8. #18
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    My post was one of the reasons it would not work... the second reason is you're not actually submitting the forum. An href does not submit the form, links just take you places... not provide an action....

    You need an <input type="submit" value="Submit" /> to actually process the form... you could add name="myform" to your form tag... and then do...

    Code:
    <a href="#" onclick="javascript:document.myform.Submit();" />Submit</a>
    That would do it too I think? Been so long since I've coded might not work... but you get the jist.

  9. #19
    Join Date
    Nov 2008
    Location
    UK
    Posts
    173
    Tokens
    0
    Habbo
    coolchris322

    Latest Awards:

    Default

    change all the $_GET to $_POST['class'] where class is the name of the text area.

  10. #20
    Join Date
    Mar 2009
    Location
    Western Australia
    Posts
    386
    Tokens
    0

    Default

    EDIT // Damit ^ Didn't read

    HTML Code:
    <form method="post" action="sendmail.php">
    
    <!-- Personal Details -->
    <fieldset>
    <legend style="margin-bottom:0">Leave us a message!</legend>
    
    <label style="padding-top: 1em">Name:</label>
    <input type="text" title="Text input: First Name" name="Name" />
    
    <label>Email:</label>
    <input type="text" title="Text input: Email" name="email" />
    
    <label>Phone:</label>
    <input type="text" title="Text input: Phone" name="phone" />
    
    <label>Message:</label>
    <textarea rows="20" cols=""></textarea>	
    </fieldset>
    
    <p><a href="sendmail.php" class="button-submit"></a></p>
    </form>
    </div>
    You've got your method set as POST yet you are using $_GET['message']; so try changing it to $_POST['message']; do the same for the email as well so give the bottom code a try:

    PHP Code:
    <?
    $email 
    $_POST['email'] ;
    $message $_POST['message'] ;
    mail"[email protected]""Email Subject"$message"From: $email);
    print 
    "Congratulations your email has been sent";
    ?>

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
  •