What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » Website Help :)

Website Help :)
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
29 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Website Help :)
You didn't get me right
For the php
code:
<?php
// get posted data into local variables
$EmailFrom = Trim(stripslashes($_POST['EmailFrom']));
$EmailTo = "admin@haboz.net";
$Subject = "Contact Us";
$Name = Trim(stripslashes($_POST['HabboName']));
$Query = Trim(stripslashes($_POST['Query']));
$Ip = $_SERVER[REMOTE_ADDR];

$spammers = array(
'IP 1',
'IP 2',
'IP 2'
    );
for($i=0;$i<sizeof($spammers);$i++) {
if(strpos($ip, $spammers[$i])!==false) {
    header('Location: contact_us_spammer.php');
}
}

// validation
$validationOK=true;
if (Trim($EmailFrom)=="") $validationOK=false;
if (!$validationOK) {
  header('Location: contact_us_error.php'); 
}

// prepare email body text
$Body = "";
$Body .= "Habbo Name: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "IP: ";
$Body .= $Ip;
$Body .= "\n";
$Body .= "Query: ";
$Body .= $Query;
$Body .= "\n";

// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");

// redirect to success page
if ($success){
  header('Location: contact_us_ok.php');
}
else{
  header('Location: contact_us_error.php');
}
?>

This post was edited on 03-09-2007 at 07:23 AM by Felu.
03-09-2007 06:52 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Website Help :) - by Eddie on 03-09-2007 at 06:32 AM
RE: Website Help :) - by Felu on 03-09-2007 at 06:40 AM
RE: Website Help :) - by Eddie on 03-09-2007 at 06:43 AM
RE: Website Help :) - by Felu on 03-09-2007 at 06:52 AM
RE: Website Help :) - by NiteMare on 03-09-2007 at 06:54 AM
RE: Website Help :) - by WDZ on 03-09-2007 at 07:02 AM
RE: Website Help :) - by Felu on 03-09-2007 at 07:08 AM
RE: Website Help :) - by WDZ on 03-09-2007 at 07:14 AM
RE: Website Help :) - by Eddie on 03-09-2007 at 07:43 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On