Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 4
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 11931 times and has 3 replies Next Thread
Male Acclaim.TV
Stranger




Joined: Jun 9, 2005
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Please help me with my Flash Email form and PHP script

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]
[Jun 9, 2005 3:40:44 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male admin
Advanced Member
Member's Avatar


Joined: Jun 14, 2003
Post Count: 2940
Status: Offline
Reply to this Post  Reply with Quote 
Re: Please help me with my Flash Email form and PHP script

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]
[Jun 9, 2005 10:10:04 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male xeno439
Stranger




Joined: Mar 6, 2006
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Please help me with my Flash Email form and PHP script

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]
[Mar 6, 2006 11:56:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male joevland
Stranger




Joined: May 25, 2008
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Please help me with my Flash Email form and PHP script

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]
[May 25, 2008 12:35:33 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread