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 13

Thread: PHP Whack-out!

  1. #1
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Question PHP Whack-out!

    PHP Needed pls check this id be very happy if u could validate it for me thx in advance


    PHP Code:
    <?php
    // get posted data into local variables
    $EmailFrom "[email protected]";
    $EmailTo "[email protected]";
    $Subject "Quote Request";
    $Name Trim(stripslashes($_POST['Name'])); 
    $Email Trim(stripslashes($_POST['Email'])); 
    $Details Trim(stripslashes($_POST['Details'])); 
    // validation
    $validationOK=true;
    if (!
    $validationOK) {
      print 
    "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
      exit;
    }
    // prepare email body text
    $Body "";
    $Body .= "Name: ";
    $Body .= $Name;
    $Body .= "\n";
    $Body .= "Email: ";
    $Body .= $Email;
    $Body .= "\n";
    $Body .= "Details: ";
    $Body .= $Details;
    $Body .= "\n";
    // send email 
    $success mail($EmailTo$Subject$Body"From: <$EmailFrom>");
    // redirect to success page 
    if ($success){
      print 
    "<meta http-equiv=\"refresh\" content=\"0;URL=ok.htm\">";
    }
    else{
      print 
    "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
    }
    ?>

    Thx in advance

    Thread Moved by J1MI (Forum Moderator) - From website designing, please post in the correct section next time. thanks.
    Last edited by J1MI; 18-12-2006 at 06:42 PM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #2
    Join Date
    Nov 2006
    Location
    Doncaster, UK
    Posts
    1,700
    Tokens
    0

    Latest Awards:

    Default

    validate?

    wth?
    unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
    puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
    costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
    norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.



  3. #3
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    it doesn't work.. could you tell me whats wrong with it.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #4
    Join Date
    May 2006
    Location
    Huntingdon (Cambridgeshire UK)
    Posts
    3,395
    Tokens
    0

    Latest Awards:

    Default

    Have you named anything in it?

  5. #5
    Join Date
    Nov 2006
    Location
    Doncaster, UK
    Posts
    1,700
    Tokens
    0

    Latest Awards:

    Default

    pretty crap coding if you ask me.

    Edited by J1MI (Forum Moderator) - Please don't post pointlessly.
    Last edited by J1MI; 18-12-2006 at 06:51 PM.
    unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
    puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
    costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
    norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.



  6. #6
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    well if it is pretty crappy coding i really dont get why, if you want coding to do something theres usually one way of doing it, thats my way, ok, pls could you help out if u need the htmlfile here it is
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Pro web designs UK - Contact Form.</title>
    <style type="text/css">
    <!--
    body,td,th {
    	font-family: Arial, Verdana;
    }
    body {
    	background-color: #333333;
    }
    .style1 {color: #FFFFFF}
    -->
    </style></head>
    <body>
    
    <form method="POST" action="contact.php">
      <p><span class="style1">Name:</span><br>
    <input type="text" name="Name">
    <p><span class="style1">Email:</span><br>
    <input type="text" name="Email">
    <p><span class="style1">Details:</span><br>
    <textarea name="Details"></textarea>
    <p><input type="submit" name="submit" value="Submit"> 
      <span class="style1">All fields are required  </span>
    </form>
    </body>
    </html>
    How could this hapen to meeeeeeeeeeeeeee?lol.

  7. #7
    Join Date
    Nov 2006
    Location
    Doncaster, UK
    Posts
    1,700
    Tokens
    0

    Latest Awards:

    Default

    there's never only 1 way of coding.

    that's one of the frist things you shold learn - especially in php.
    unitedstates,canada,mexico,panama,haiti,jamaica,pe ru,republicdominian,cuba,caribbean,greenland and el salvadour too.
    puertorica,colombia,venezuela,honduras,guyana and still, guatamala,bolivia then argentina and ecuador,chile,brazil.
    costarica,belize,nicaragua,bermuda,bahamas,tobago, sanjuan,paraguary,uruguay,suriname,frenchguiana,ba rbados and guan.
    norway and sweden and iceland and finland and germany now one piece, switzerland,austrira,czechoslovakia,italy,turkey and greece.



  8. #8
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    OF FOR GODS SAKE! *Text Removed* insulting it if you know better tell me where its wrong mr PHP ***** U!"

    Edited by J1MI (Forum Moderator) - Please don't avoid the filter.
    Last edited by J1MI; 18-12-2006 at 07:19 PM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  9. #9

    Default

    is there any need to Swear, also there is no need for the insults Come on :S

    Edited by J1MI (Forum Moderator) - Please stay ontopic.
    Last edited by J1MI; 18-12-2006 at 07:19 PM.

  10. #10
    Join Date
    Nov 2006
    Location
    Leeds, Yorkshire
    Posts
    992
    Tokens
    0

    Default

    "there is only 1 way of coding"

    PMSL


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
  •