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
Old 12-16-2010, 08:48 AM godaddy
Junior Talker

Posts: 3
Name: jaya srinivas
Trades: 0
Dear sir.,

i have a problem about my contact form in GODADDY hosting. i uplode flash contact form in my site. its not working. i am not getting mail from my website to my email account ie.. repose@repose.in

my website contact : http://repose.in/index-5.html
my web site : repose.in

in my php script given below

**********************************

<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_subject = $_POST['subject'];
$contact_message = $_POST['message'];

if( $contact_name == true )
{
$sender = $contact_email;
$receiver = "repose@repose.in";
$client_ip = $_SERVER['REMOTE_ADDR'];
$email_body = "Name: $contact_name \nEmail: $sender \nSubject: $contact_subject \nMessage: $contact_message ";
$extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion();

if( mail( $receiver, "Mail From Short Greens - $subject", $email_body, $extra ) )
{
echo "success=yes";
}
else
{
echo "success=no";
}
}
?>

+++++++++++++++

next

i uplode same php and flash contact from godday hosting

ie., shortgreens,com
contact form : http://shortgreens.com/contact.html

its working

please kindly solve the problem


regards


bee jay
repose is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-19-2010, 11:13 AM Re: godaddy
evans123's Avatar
Ultra Talker

Posts: 468
Trades: 0
Try and place your code in the [PHP] and [CODE] code tags

I think your find that $contact_name won't equal try. See if this makes it any better.

PHP Code:
<?php
$contact_name 
$_POST['name'];
$contact_email $_POST['email'];
$contact_subject $_POST['subject'];
$contact_message $_POST['message'];

if( isset(
$_POST['name']) && isset($_POST['email']) && isset($_POST['subject']) && isset($_POST['message']) ) {
    
$sender $contact_email;
    
$receiver "repose@repose.in";
    
$client_ip $_SERVER['REMOTE_ADDR'];
    
$email_body "Name: $contact_name \nEmail: $sender \nSubject: $contact_subject \nMessage: $contact_message ";
    
$extra "From: $sender\r\n" "Reply-To: $sender \r\n" "X-Mailer: PHP/" phpversion();

    if( 
mail$receiver"Mail From Short Greens - $subject"$email_body$extra ) )
        echo 
"success=yes";
    else
        echo 
"success=no";
}
?>
evans123 is offline
Reply With Quote
View Public Profile Visit evans123's homepage!
 
Old 12-30-2010, 01:31 AM Re: @ evans123 godaddy
Junior Talker

Posts: 3
Name: jaya srinivas
Trades: 0
Dear sir

Thank u for u r reply., i try the contact form this code but it is not working.
i uplode another contact form its working very nice


Once again thanks a lot

regards


bee jay
repose is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to godaddy
 

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.37414 seconds with 12 queries