The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
I doubt if there’s any reason why the Freeola server would reject the script, so I can only assume I’ve written it wrongly. With only three fields (Name, Company, Email) it should be fairly short and I’m wondering if anyone out there can give me a sample of the basic code. I’d very much appreciate some help.
I doubt if there’s any reason why the Freeola server would reject the script, so I can only assume I’ve written it wrongly. With only three fields (Name, Company, Email) it should be fairly short and I’m wondering if anyone out there can give me a sample of the basic code. I’d very much appreciate some help.
You will need to supply a bit more information first before we can help you fully. Is your site live for us to have a look?
Please post the code (Actionscipt) that is on your Flash button, and the PHP script that you are using to send the mail :)
Thanks!
Also: Google is always your friend..! (At least it is mine) - http://www.google.co.uk/search?q=flash+email+form+php&sourceid=navclient-ff&ie=UTF-8&rls=GGGL,GGGL:2006-20,GGGL:en
There's lots of tutorials on Flash and how to make typical necessities like contact forms so you should find what you need without too much trouble.
You'll almost never be the only person with a particular problem (of any sort..!), so it's always worth a search on Google for what you're after.
Let me know if you need any further help :)
I've stripped the php file right down to basics and I'm still having problems. I'd appreciate it if you had a look at it and let me know if there's something amiss. Thanks.
$to = "[email protected]";
$subject = "Motivational Speaking Enquiries";
$body = "Forename: $fnnSurname: $snnTelephone: $tnE-mail: $emailnComments $c";
mail($to, $subject, $body, '[email protected]','-f [email protected]');
?>
> Hi
....
> $to = "[email protected]";
> $subject = "Motivational Speaking Enquiries";
> $body = "Forename: $fnnSurname: $snnTelephone: $tnE-mail:
> $emailnComments $c";
>
> mail($to, $subject, $body,
> '[email protected]','-f
> [email protected]');
>
> ?>
Hi Ardee,
I've checked your syntax against my own code and notice you have missed the 'From: ' part of the from address. I remember Freeola changing this a while ago to prevent auto-mailers (I think) - a quick check of the Freeola help & support shows the syntax for your mail() should be:
mail($to, $subject, $body, 'From: [email protected]', '-f [email protected]');
Give it a shot.
JTD
I'll certainly give it a try.
$fn= $_GET["fn"];
$sn= $_GET["sn"];
$t= $_GET["t"];
$c= $_GET["c"];
$email= $_GET["email"];
$to = "motivationalspeaking.co.uk";
$subject = "Motivational Speaking Enquiries";
$body = "Forename: $fnnSurname: $snnTelephone: $tnE-mail: $emailnComments $c";
mail($to, $subject, $body, 'From: [email protected]','-f [email protected]');
?>
I know you said the code you're showing is stripped out - but don't you have to use the sendmail command ('/usr/sbin/sendmail') somewhere along the line?
Ignore me if I'm totally missing the point :¬)
Search Freeola Chat
If you replace your variables with hard code does it work then?
I often use this script to debug:
<script language="JavaScript" type="text/javascript">
alert("<?php echo $message;?>");
</script>
It pops up with a dialogue box showing your variable contents.
Place it before the mail() statement and replace my $message with your variables. My first guess would be that one or more variables is null - but this will soon identify that.
I also note you use $_GET - does Flash use $_GET or $_POST?
JTD