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!


Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Location
    Cymru
    Posts
    2,157
    Tokens
    2,925

    Latest Awards:

    Default Whats Wrong With...

    This Code...

    PHP Code:
        <?php 
        
    if ($_POST['submit']){
    $user strip_tags($_POST['user']);
    $pass strip_tags($_POST['pass']);
    $passconf strip_tags($_POST['passconf']);
    $email strip_tags($_POST['email']);
    $userid strip_tags($_POST['userid']);
    $typesite strip_tags($_POST['typesite']);
    $domain strip_tags($_POST['domain']);
    $ip $_SERVER['REMOTE_ADDR'];
    $to "claim@****************";
    $subject "Contact us";
    $headers "From: $email";
    $message "Contact us reply:
    User: 
    $user
    Password: 
    $pass
    IP: 
    $ip
    Confirm Password: 
    $passconf
    Email: 
    $email
    User ID: 
    $userid
    Type Of Site: 
    $typesite
    (sub)Domain: 
    $domain;
    mail(
    $to,$subject,$message,$headers);
    echo "
    Sent!";
    }
    else
    {
    ?>
        <form method="
    post">
      <p align="
    center" class="style2"> Desired Username: 
        <input type="
    text" name="user">
        <br>
         Desired Password: 
         <input type="
    password" name="pass">
         <br>
         Confirm Password: 
         <input type="
    password" name="passconf">
         <br>
         E-mail Address:     
          <input name="
    email" type="text" value="">
         <br>
        EzyRewards UserID: 
        <input type="
    text" name="userid">
        <br>
        <br>
        Type Of Site: 
        <input type="
    text" name="typesite">
        <br>
        (Sub)Domain: 
        <input type="
    text" name="domain">
        <br>
        <input ="
    submit" name="submit" value="Claim">
        <input type="
    reset" name="reset" value="Reset" />
      </p>
    </form>

  2. #2
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Whats the error..

  3. #3
    Join Date
    May 2006
    Location
    Cymru
    Posts
    2,157
    Tokens
    2,925

    Latest Awards:

    Default

    Oops forgot to say, thanks

    When i click submit(claim) it doesnt send anything. All The Boxes Go Back And nothing is in the e-mail inbox.

  4. #4
    Join Date
    Apr 2006
    Location
    wolvo init lol.
    Posts
    2,272
    Tokens
    0

    Latest Awards:

    Default

    It might have sent, perhaps the code doesnt send it to a page after its sent.

  5. #5
    Join Date
    May 2006
    Location
    Cymru
    Posts
    2,157
    Tokens
    2,925

    Latest Awards:

    Default

    Inbox Is Empty, Wen I Check...

  6. #6
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Change <form method="post"> <form method="post" action="filename.php">

  7. #7
    Join Date
    May 2006
    Location
    Cymru
    Posts
    2,157
    Tokens
    2,925

    Latest Awards:

    Default

    kk ill try that. Thanks dentafrice

  8. #8
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Post what happens.. im pretty sure thats it because when you hit the form you have no action specified so its basicly reseting it.

    You at least need to set the action as that page.. or if you want to have multiple things

    Make a drop down box with like three to emails.

    if($_POST[to] == "[email protected]") {
    mail(balblabl;jk;ljadfj klsdj);
    }
    and just keep repeating that

  9. #9
    joshspk4 Guest

    Default

    I don't know much about PHP but I was gonna say change it to what Dent was gonna say, Maybe it did send and it is in your junk email folder?

Posting Permissions

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