Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 09-27-2008, 01:47 PM   #1 (permalink)
Registered User
 
Join Date: Sep 2008
Posts: 1
OS: XP


Having a small issue with chfeedback.php 2.07

Hi,

I created a form using chfeedback.php 2.07 and it is working properly EXCEPT for one thing - in the email box if the symbol "@" is used the form is not being sent. It says that it was sent successfully but it doesn't arrive. The form arrives successfully and shows the thank you page when I remove the "@" symbol from the email box. This is the code for anyone that can help (by the way, I've used this script on a bunch of sites and never had this problem before)- Thanks a lot if you can help - Nicole

<?
/*

*/

// ------------- CONFIGURABLE SECTION ------------------------

// $mailto - set to the email address you want the form
// sent to, eg
//$mailto = "youremailaddress@example.com" ;

$mailto = "nicole@---.com" ;


// $subject - set to the Subject line of the email, eg
//$subject = "Feedback Form" ;

$subject = "Book Store Purchase from Your Website!" ;

// the pages to be displayed, eg
//$formurl = "http://www.example.com/feedback.html" ;
//$errorurl = "http://www.example.com/error.html" ;
//$thankyouurl = "http://www.example.com/thankyou.html" ;

$formurl = "http://www.---.com/store.htm" ;
$errorurl = "http://www.---.com/error.htm" ;
$thankyouurl = "http://www.---.com/thanks.htm" ;

$uself = 1;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
$FullBelly = $_POST ['FullBelly'] ;
$HuntCow = $_POST ['HuntCow'] ;
$AuntLucy = $_POST ['AuntLucy'] ;
$LetsGoHC = $_POST ['LetsGoHC'] ;
$LetsGoPb = $_POST ['LetsGoPb'] ;
$LittleShop = $_POST ['LittleShop'] ;
$LoveIsHc = $_POST ['LoveIsHc'] ;
$LoveIsPb = $_POST ['LoveIsPb'] ;
$LoveIsMini = $_POST ['LoveIsMini'] ;
$PeterXmas = $_POST ['PeterXmas'] ;
$PeterTnanx = $_POST ['PeterTnanx'] ;
$Secret = $_POST ['Secret'] ;
$SoftHouse = $_POST ['SoftHouse'] ;
$GoodNews = $_POST ['GoodNews'] ;
$SpecialGifts = $_POST ['SpecialGifts'] ;
$SummerParty = $_POST ['SummerParty'] ;
$Turn = $_POST ['Turn'] ;
$Visit = $_POST ['Visit'] ;
$Wedding = $_POST ['Wedding'] ;
$WhenChickens = $_POST ['WhenChickens'] ;
$name = $_POST['name'] ;
$address1 = $_POST['address1'] ;
$address2 = $_POST['address2'] ;
$city = $_POST['city'] ;
$state = $_POST['state'] ;
$zip = $_POST['zip'] ;
$country = $_POST['country'] ;
$telephone = $_POST['telephone'] ;
$email = $_POST['email'] ;
$specomments = $_POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($comments)) {
header( "Location: $errorurl" );
exit ;
}
if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) {
header( "Location: $errorurl" );
exit ;
}

if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}

$messageproper =

"This message was sent from:\n" .
"$name\n" .
"------------------------------------------------------------\n" .

"The Full Belly Bowl: $FullBelly\n" .
"Hunting The White Cow: $HuntCow\n" .
"In Aunt Lucy's Kitchen: $AuntLucy\n" .
"Let's Go Home Hardcover: $LetsGoHC\n" .
"Let's Go Home Paperback: $LetsGoPb\n" .
"A Little Shopping: $LittleShop\n" .
"Love Is Hardcover: $LoveIsHc\n" .
"Love Is Paperback: $LoveIsPb\n" .
"Love Is Mini: $LoveIsMini\n" .
"Peterkin's Christmas: $PeterXmas\n" .
"Peterkin's Thanksgiving: $PeterTnanx\n" .
"The Secret Remedy: $Secret\n" .
"Soft House: $SoftHouse\n" .
"Some Good News: $GoodNews\n" .
"Special Gifts: $SpecialGifts\n" .
"Summer Party: $SummerParty\n" .
"Turn! Turn! Turn!: $Turn\n" .
"The Visit: $Visit\n" .
"Wedding Flowers: $Wedding\n" .
"When Chickens Grow Teeth: $WhenChickens\n" .

"Name of sender: $name\n" .
"Address1 of sender: $address1\n" .
"Address2 of sender: $address2\n" .
"City of sender: $city\n" .
"State of sender: $state\n" .
"Zip of sender: $zip\n" .
"Country of sender: $country\n" .
"Telephone of sender: $telephone\n" .
"Email of sender: $email\n" .

"------------------------- SPECIAL INSTRUCTIONS / DEDICATIONS OR COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;

mail($mailto, $subject, $messageproper,
"From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" );
header( "Location: $thankyouurl" );
exit ;


?>
luckyfifth is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 04:13 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85