View Full Version : Email Form script for Flash
Bez
July 24th, 2003, 01:39 PM
Hi Guys,
I have created an email from following a tutorial, But the tutrial in the end turned out to use CGI.
So, Not i have the form set up, With the variables set, Is there a way of making it a php email form?
If yes, Can anybody provide me with a php script which i can use to interact with the form to send the email?
Regards
λ
July 24th, 2003, 01:59 PM
<?php
$to="me@me.com";
$subject="Contact Form.";
$message=$_POST['message'];
mail($to,$subject,$message);
?>
The above script sends an email to the adress in $to, with the body $message, and the subject $subject.
An example flash AS script that would work with the above PHP:
myButton_btn.onRelease = function(){
mail_lv.message=myText_txt.text;
mail_lv.send("www.yourserver.com/mail.php");
}
Bez
July 24th, 2003, 02:23 PM
I cant seem to get this to work,
If i upload my php file and my fla will you take a look at it for me?
Digitalosophy
July 24th, 2003, 02:32 PM
http://www.kirupaforum.com/forums/showthread.php?threadid=17604&highlight=variables+php+email
λ
July 24th, 2003, 02:41 PM
Yeah, you can do that, and I'll check it for you. :)
Bez
July 24th, 2003, 02:43 PM
Thanks Nj,
Much appreciated
λ
July 24th, 2003, 03:20 PM
It should be working now.
Unfortunately, I can't test it because I haven't got a working mail server at the moment, but try it wherever you can.
You'll have to change your email again in the form.php script.
The main reason it wasn't working was that you had forgotten to change some stuff.
λ
July 24th, 2003, 03:21 PM
forgot to attach..
Bez
July 24th, 2003, 03:22 PM
Hi Nj,
You gonna upload the files?
And, For my own knowledge, What hadn't i changed that needed to be changed?
P.s
Do you have Aol or Msn?
λ
July 24th, 2003, 03:24 PM
I have msn
MSN: njs12345 -at- hotmail.com
Bez
July 24th, 2003, 03:29 PM
Hi Nj,
I have uploaded the files you provided me with, And they still do not work.
Do i need to chmod the php file?
Also, When i pressed the submit button, A new browser opens which contains the form.php file.
λ
July 25th, 2003, 11:32 AM
In case anyone was interested in this, the files that I gave to Bez did work. His host wasn't set up to send email.
Digitalosophy
July 25th, 2003, 12:41 PM
doesnt that stink
Bez
July 25th, 2003, 12:43 PM
Yep, It sure does :(
My other host does though, So its ok :)
Digitalosophy
July 25th, 2003, 05:32 PM
if often worries me that web hosting company's don't have their server configured to send email, i mean isn't that a a neccessity?( i know i spelled that wrong :0)
Bez
July 25th, 2003, 05:52 PM
Yeah, I know what you mean.
You pay for something, So you expect what you are paying for.
Im going to contact them and ask them if they will set it up
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.