|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 4
|
|
| Author |
|
|
Stranger Joined: Jun 9, 2005 Post Count: 1 Status: Offline |
Gday I downloaded one of those predesigned flash templates the other day and i am very confused about the contacts page they have created and hope that someone can help me get it straight. My site is up www.acclaim.tv , however, my contacts page does not send any email. I have checked with my hosting company and they have said that their servers are setup for PHP and so is my account. All my files reside in the one folder/directory...including my swf, php, jpg, and html files All the text in the site is contained in a HTML page, and the flash input text fields pull the text from this html file. My contacts page has: First Name, Surname, Email and comments section The script on the send button is: on (rollOver) { this.gotoAndPlay("s1"); } on (releaseOutside, rollOut) { this.gotoAndPlay("s2"); } on (release) { url_var = "server_option="+_root.server_option+"&recipient=" +_root.recipient+"&your_name="+_root.your_name+"&your_email="+_root.your_email+"&message="+_root.message; //getURL("contact."+_root.server_option+"?"+url_var, "_blank", "GET"); _root.your_name = ""; _root.your_email = ""; _root.your_lastname = ""; _root.message = ""; } The PHP script reads: $subject="from".$_GET['your_name']; $headers= "From:".$_GET['your_email']."n"; $headers.='Content-type: text/html; charset=iso-8859-1'; mail($_GET['recipient'], $subject="Message from my website", " ".$_GET['message']." " , $headers); echo ("Your message was successfully sent!"); ?> And in my html page, the server_option and recipient reads: &server_option=php &recipient=info@acclaim.tv Can anyone shed any light on this please. Thanks so much Chris ---------------------------------------- [Edit 2 times, last edit by admin at Jun 9, 2005 10:09:07 AM] |
||
|
|
Advanced Member Joined: Jun 14, 2003 Post Count: 2940 Status: Offline |
Hi, $headers= "From:".$_GET['your_email']."n"; Try changing 'n' to '\n' ---------------------------------------- Stefan Mischook Video Tutorial Store | Web Templates ---------------------------------------- [Edit 1 times, last edit by admin at Jun 9, 2005 10:18:46 AM] |
||
|
|
Stranger Joined: Mar 6, 2006 Post Count: 1 Status: Offline |
I have some free downloads of Flash and PHP based contact forms here at http://www.flashmailforms.com ---------------------------------------- [Edit 1 times, last edit by xeno439 at Mar 6, 2006 11:57:25 AM] |
||
|
|
Stranger Joined: May 25, 2008 Post Count: 1 Status: Offline |
Try using _parent instead of _root. Also you need to remove _root._lastname=" "; There is no place in the url_var for that. Everything looks fine in all code pages. May need to enable php on your server? If you mc is on top of a mc that would make it @ _level2. Then you would need to use ="_parent._parent.your_name? Good Luck ---------------------------------------- [Edit 4 times, last edit by joevland at May 25, 2008 1:09:53 PM] |
||
|
|
|
|
|
Current timezone is GMT May 19, 2013 7:03:22 PM |