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 02-27-2009, 08:35 PM PHP form question
Junior Talker

Posts: 4
Name: Jason
Trades: 0
I purchased a pre-built flash web site which I host at Godaddy. Unfortunately I have no coding experience, and both the creator of the site and Godaddy offer no help. I have a "contact us" form located in the site, which, ideally, sends and e-mail to me when a client fills in the fields of the form. I get the e-mail just fine, HOWEVER, the clients e-mail address, which is listed in the "e-mail" field, does not show up in the e-mail. Furthermore, the e-mail is usually stating the sender as the clients name@p3slh234.shr.phx3.secureserver.net (which is obviously not the clients e-mail address. I will list the PHP code...maybe someone can tell me where I am going wrong. Thanks in advance and sorry for such a novice question. Here the the PHP text:

<?
$name=$_POST['t1_2'];
$mail=$_POST['t2_2'];
$comm=$_POST['t3_2'];
$ToEmail = "thelloyds@soulreflectionsphoto.com";
$ToSubject = "MESSAGE FROM YOUR SITE";
$EmailBody = "Full Name: $name\n

Your message (include e-mail address): $comm\n";
$Message = $EmailBody;

$headers .= "Content-type: text; charset=iso-8859-1\r\n";
$headers .= "From:".$name." / ".$email."\r\n";
mail($ToEmail,$ToSubject,$Message, $headers);
?>
jslloyd is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-27-2009, 09:19 PM Re: PHP form question
Defies a Status

Posts: 1,606
Trades: 0
Would have to see the form that does the post to know for sure but as a wild shot I would guess that $email needs to be changed to $mail on the next to the last line.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 02-28-2009, 05:21 AM Re: PHP form question
EdB
Skilled Talker

Posts: 79
Name: Ed Barnett
Trades: 0
Quote:
Originally Posted by jslloyd View Post
....the e-mail is usually stating the sender as the clients name@p3slh234.shr.phx3.secureserver.net (which is obviously not the clients e-mail address.
I expect that this is the server's address as it is the server that sends you the email (not the client). If the above post doesn't work then please show us the HTML for the form
EdB is offline
Reply With Quote
View Public Profile Visit EdB's homepage!
 
Old 02-28-2009, 06:37 AM Re: PHP form question
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Yeah, the second header line should most likely be

$headers .= "From: $name <$mail>\r\n";
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 02-28-2009, 11:20 AM Re: PHP form question
Junior Talker

Posts: 4
Name: Jason
Trades: 0
I tried chaning the "email" to "mail" on the 2nd line...got the same problem result. I also tried changing the entire line as suggested, and the e-mail would not send at all. What I've posted was the text form of the PHP file...what else would you guys need to see Thanks a million for you help.

Jason
jslloyd is offline
Reply With Quote
View Public Profile
 
Old 02-28-2009, 01:38 PM Re: PHP form question
Defies a Status

Posts: 1,606
Trades: 0
It might be your choice of hosts. GD is know for the wierd factor.

If you want to put the form and the send into a zipfile I will test it on a cPanel server and see what the results are there.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 02-28-2009, 02:14 PM Re: PHP form question
Junior Talker

Posts: 4
Name: Jason
Trades: 0
My confusion also lies in that the form is located in an entire flash site. Other than the PHP file, can I view and edit the form itself (besides in editing the symbol in Adobe flash). Also, I just discovered, while looking at it in Adobe, the e-mail field DOES NOT have var: listed, as the other 2 fields do (1_2 and 3_2 respectively). A tutorial I briefly looked at stated that each should have a var (assuming variable). In any case, I will gladly send you the file, but it would be the entire site unless you could tell me how to send only the form. thanks again.

JsL
jslloyd is offline
Reply With Quote
View Public Profile
 
Old 02-28-2009, 02:36 PM Re: PHP form question
Junior Talker

Posts: 4
Name: Jason
Trades: 0
I've also discovered something in my tireless attempt to figure this crap out. My PHP file HAS the e-mail variable listed as 2_2...(which is not listed within the flash movie). However, when I change the variable in adobe flash, and attempt to export it to the folder with the index file...I get an error. I ALSO get an error when exporting the flash movie just as it came, without editing.....
jslloyd is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP form question
 

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