Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Contact Us form no longer works?
Old 03-15-2008, 03:55 AM Contact Us form no longer works?
Average Talker

Posts: 18
Name: Kevin
Trades: 0
I've been busting my head over this for the past couple hours. I was hoping someone could take a look at it and tell me why this isn't working.

Code:
<?
$to = 'sales@bbpdesigns.com';
$subject = 'subject';
$message = 'From: ' . $_REQUEST['Name'] . "\n\n" . $_REQUEST['Email2'] . "\n\n" . $_REQUEST['Phone'] . "\n\n" . $_REQUEST['Details'];
$email = $_REQUEST['Email'];
$headers = 'From: ' . $email . "\r\n" .
           'Reply-To: ' . $email . "\r\n" .
         'X-Mailer: PHP/' . phpversion();

mail ($to, $subject, $message, $headers);
header("Location: thanks.html");
?>
Thanks,
-Kevin
kevinb84 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-15-2008, 09:13 AM Re: Contact Us form no longer works?
Skilled Talker

Posts: 69
Trades: 0
It works fine here, it just doesn't redirect to the thanks page. Is that the problem you are having?
alexd181 is offline
Reply With Quote
View Public Profile Visit alexd181's homepage!
 
Old 03-15-2008, 10:30 AM Re: Contact Us form no longer works?
Average Talker

Posts: 18
Name: Kevin
Trades: 0
Really? No, it redirects to the thanks page just fine. I'm just not receiving any of the submissions I send in to my e-mail. I've tried 3 different e-mail addresses and am still not sure what the problem is
kevinb84 is offline
Reply With Quote
View Public Profile
 
Old 03-15-2008, 11:44 PM Re: Contact Us form no longer works?
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Try turning on Error reporting http://us2.php.net/error_reporting try e_all and see if anything crops up.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 03-17-2008, 05:31 AM Re: Contact Us form no longer works?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Most likely that either your sender server does not pass this email due to not local sender address in From field or your receiving servers put your message into spambox due to badly formed headers. Use phpmailer to make your message looking usual and put some email into From field that is valid and exists on sending server.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 03-17-2008, 09:55 AM Re: Contact Us form no longer works?
Novice Talker

Posts: 5
Trades: 0
its your smtp server which isnt allowing the mail to be sent ,check is mail() function has been disabled
mail8769 is offline
Reply With Quote
View Public Profile
 
Old 03-18-2008, 01:54 PM Re: Contact Us form no longer works?
Average Talker

Posts: 18
Name: Kevin
Trades: 0
Well after hours of working with it I decided to take my original code and try it on another server of mine and it worked fine, didn't even show up in the junk box.

Would there be any reason why it works fine on one server but not another?
kevinb84 is offline
Reply With Quote
View Public Profile
 
Old 03-18-2008, 10:51 PM Re: Contact Us form no longer works?
futurevisions's Avatar
Super Talker

Posts: 102
Location: UK
Trades: 0
Quote:
Originally Posted by kevinb84 View Post
Well after hours of working with it I decided to take my original code and try it on another server of mine and it worked fine, didn't even show up in the junk box.

Would there be any reason why it works fine on one server but not another?
Yus, it could be to do with the PHP setup on that server. Have you had the form, or a different PHP form work on that server?
futurevisions is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Contact Us form no longer works?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68534 seconds with 12 queries