Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




PHP With Flash Contact Form



I Have a contact form, and I think I have it set up right. I am not familiar with PHP,how do I set it up so flash can communicate with it?



This is what I have for my flash:
stop();

// -------------------<send form LoadVars>------------------- \
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
gatherForm.email_to = "fit4life@bodyshopfitnesscenter.com";
gatherForm.visitor_comments = userMessage.text;
gatherForm.visitor_name = userName.text;
gatherForm.visitor_email = userEmail.text;
gatherForm.visitor_Phone = userPhone.text;

gatherForm.send("form.php","POST");
}
// -------------------</send form LoadVars>------------------- \

//--------------------<submit button AS>---------------------\

// onRelease
this.submitBtn.onRelease = function() {
if (userEmail.text == "" || userName.text == "" || userMessage.text == "" || userPhone.text =="") {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
}

//--------------------</submit button AS>---------------------\

This is what I have in my file form.php
<?
$to = "fit4life@bodyshopfitnesscenter.com";
$msg = "$name";
$msg .= "$message";
$msg= "$phone";
$msg = "$email";
mail($to, $name, $email, $msg, $phone, "Message From: Bodyshop ClientReply-To: $email");
?>


for some reason its not working im not getting emails...Any help would be greatly appreciated



ActionScript.org Forums > Flash General Questions > Flash 8 General Questions
Posted on: 02-20-2007, 01:14 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Contact Form In Flash Please Help
Hi im trying to create a form which will send a few fields to a set email address. I am trying to find a script that i can use to do this. I have tried to follow "CGI Forms With Flash MX and UI Components" but i cant get any infomation recieved.

Any advice will be greatly appreciated.
THanks
Alex

Flash Contact Form
I have made a flash contact form for my website that takes the users email address and a message. The fields are checked by AS and the variables are then passed onto a PHP script using the 'loadVariables()' method. the script then makes the variables into an email and sent off.

I have the input text fields, the submit button and the code all within the same movieclip and I have associated the text field with a variable.

My problem is that when I test the form, all I get at the other end is an empty email, with no content from the variables.

Does anyone know what's going wrong?

Thank you,

Felix.

P.S. I can't upload the .fla right now but I'll do it when I get a chance so you can have a proper look at what's going on.

Flash Contact Form
Hi,
I want to have a contact form on my Flash site. On my html site this is done easily enough with cgi - server side script. Can forms be done in Flash in a similar way without having to use php?

Can anyone supply some sample actionscript or give a link to a tutorial?

thanks!

Flash/php - Contact Form
i need help on the coding of a contact form in flash.

i've already created the form itself, but i haven't done any of the scripting, and none of the php coding.

now, i know absolutely NOTHING about php and i've never created a contact form before, so it would be great if somebody could show me how this works.

the contact form i created has 3 fields:

1) Your Name:
2) Your Email:
3) Message:

what actions do i use for each field to make them work? and how do i do the php for each? what do i create php with? upon its creation, do i simply upload it to my server (yes, it runs apache)?

thanks for any help you guys can give!

Contact Form Using Flash
Hi,

I have been using flash for about a year now and I am using templates to get to know my way around. I have been stuck now ont he contact form and I cannot for the life of me get them to work, can anyone suggest anything to me.

Cheers

Flash - PHP - Contact Form
Hi,

I was wondering if anyone could help me with a flash/php email contact from, I have a flash form with a send button which executes the following code:

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
nextFrame();
}

the php form in question which is called from the routing is as follows:

<?php

$sendTo = "davidoliverstudent@yahoo.com";
$subject = "My Flash site reply";

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";

$headers .= "Reply-To: " . $_POST["email"] . "
";

$headers .= "Return-path: " . $_POST["email"];

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

?>

ok i got this code from a turtorial of how to do a simple flash email form, when i click the send button nothing at all happens ?? does any1 have any idea why I know my server supports php.

Or if not can anyone recomend another method of sending email from flash?

thanks,

Contact Form In Flash?
Hey, i wanted to make a form/free quote section on a site that has a sepearte swf to be loaded externally. It will have some fields that a peson can fill out and then click "send" and have the filled out form sent to me via email... I think its possible, but is it very difficult to do? I know you can do this using html/dreamweaver, but i want to do it all in flash if possible.... any help would be sweet! thanks

Help With My Flash Contact Form
I copied this code from one of those flash contact forms you can find out on the wed... I got it working by just basically using the same format that the form was given in, but when I try to put my own things into the script the send button doesn't do anything and I don't get anything in my inbox.

Please help!

This is the code I'm using for the send button:


Code:
on (press) {
if (name eq "" or number eq "" or message eq "" or Day eq "" or Afternoon eq "" or Evening eq "" or Weekday eq "" or Weekend eq "" or Artists eq "" or Authors eq "" or SmallBusiness eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop("HERE");
}
}
This is the code I'm using for the PHP form:


Code:
<?

$to = "arelis@arelis-design.com";
$subject = "Request Agent";
$msg = "$name

";
$msg .= "$number

";
$msg .= "$message

";
$msg .= "$Day

";
$msg .= "$Afternoon

";
$msg .= "$Evening

";
$msg .= "$Weekday

";
$msg .= "$Weekend

";
$msg .= "$Artists

";
$msg .= "$Authors

";
$msg .= "$SmallBusiness

";
mail($to, $subject, $msg, "From: My web site
Reply-To: $email
");

?>

Flash Contact Form
Please someone help me I have a template which has a flash form as the contact page. How do I have the contact form sent the message as an email to my email address.

I know there is plenty of instructiuons out there about this but no where does it really tell you what to do and where to place the code etc. I am a real newbie I guess.

Thanks

[F8] Help With Contact Form In Flash
I am working on a form in a flash movie, which I cannot get the variables to pass to my php files on the server. PHP is running on the server, so I know there must be a bug in the coding can anyone assist me. This is urgent. Thanx, P.

Please get the flash file here: http://www.movewithgracestudio.com/movewithgrace.fla

Here is the php code am using:

<?

// enter your email
$ToEmail = "sillidan@yahoo.com";
// Enter your name

$ToName = "GENERAL INQUIRIES";

//Enter your text for the subject line
$ToSubject = "REGISTRATION";

// Do not edit below this

$EmailBody = "NAME: $t1
EMAIL: $t3
TELEPHONE $t2
MESSAGE: $t4
";

$EmailFooter="
This message was sent from: $REMOTE_ADDR";

$Message = $EmailBody.$EmailFooter;

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$name." <".$email.">");

?>

[F8] An I Do This Contact Form In Flash?
I searched around hoping to find a contact form with enough fields that i could do this, with no luck.

I am trying to do a form like this:

http://www.brittinghamconstruction.c...st_a_quote.htm

Can anyone show me how? Doesnt even have to be flash - I am just super stumped.

Please HELP Me With Flash Contact Form Using PHP
Hi There,
I have this template that im changing and my knowledge is not very good in actions script or php.

For some reason I don’t have the php file that sends and returns and I need someone to help me make this contact form work.

This is the action script in the flash movie:

Code:
function validateForm()
{
if (contactForm.nameInput.text == "")
{
contactForm.nameInput.text = "Type you name";
} // end if
if (contactForm.emailInput.text == "" || contactForm.emailInput.text.indexOf("@", 0) == -1 || contactForm.emailInput.text.indexOf(".", 0) == -1)
{
contactForm.emailInput.text = "Type you email";
} // end if
if (contactForm.companyInput.text == "")
{
contactForm.companyInput.text = "Type your company name";
} // end if
if (contactForm.messageInput.text == "")
{
contactForm.messageInput.text = "Type your message";
} // end if
} // End of the function
function cleanForm()
{
contactForm.nameInput.text = "";
contactForm.emailInput.text = "";
contactForm.companyInput.text = "";
contactForm.messageInput.text = "";
} // End of the function
function sendForm()
{
send_lv.name = contactForm.nameInput.text;
send_lv.email = contactForm.emailInput.text;
send_lv.company = contactForm.companyInput.text;
send_lv.message = contactForm.messageInput.text;
if (contactForm.nameInput.text != "" && contactForm.nameInput.text != "Type you name" && contactForm.emailInput.text != "" && contactForm.emailInput.text != "Type you email" && contactForm.emailInput.text.indexOf("@", 0) != -1 && contactForm.emailInput.text.indexOf(".", 0) != -1 && contactForm.companyInput.text != "" && contactForm.companyInput.text != "Type you email" && contactForm.companyInput.text != "" && contactForm.companyInput.text != "Type your company name" && contactForm.messageInput.text != "" && contactForm.messageInput.text != "Type your message")
{
contactForm.loading._visible = true;
contactForm.submit.bt.enabled = false;
send_lv.sendAndLoad("form.php", result_lv, "GET");
}
else
{
validateForm();
} // end else if
result_lv.onLoad = function (success)
{
if (success)
{
if (result_lv.status == "formOk")
{
contactForm.submit.bt.enabled = true;
contactForm.loading.gotoAndPlay("sucess");
cleanForm();
} // end if
}
else
{
trace ("erro no server");
} // end else if
};
} // End of the function


Thank you

Flash/PHP Contact Form
Hello all,

i'm having a problem with a Flash & PHP contact form. ive tried using the loadVariables way, but that doesnt seem to work. the getURL way works, however it opens a window with my PHP file when the user clicks to send the message and i dont want that. can anyone help??

the getURL actionscript i used is:

on(release){
if(contact_form.name.length== 0 || contact_form.email.length== 0 || contact_form.message.length== 0){
this.gotoAndPlay(3);}
else{
this.contact_form.getURL("form.php", "", "POST");
this.gotoAndPlay(2);
}



the loadVariable actionscript i used was:

on(release){
if(contact_form.name.length== 0 || contact_form.email.length== 0 || contact_form.message.length== 0){
this.gotoAndPlay(3);}
else{
this.contact_form.loadVariables("form.php", "", "POST");
this.gotoAndPlay(2);
}

my PHP code :

<?PHP
$to = "xxx@gmail.com";
$subject = "Message sent from HWMI.info";
$email = $_POST["email"];
$message = $_POST[["message"];
$name = $_POST[["name"];
$mes = $name . "
" . $email . "
" . $message;
mail($to, $subject, $mes);
?>

i have all my input box variables named appropriatly. like i said, the getURL works, so i know that the php and actionscript are communicating. anybody have any suggestions?? thanks!

the link to the site is HWMI

Flash Contact Form (with PHP)
Hi,
Was looking online for help on this, as not too experienced in Flash development, and signed up here as from a quick look it seems a hub of knowledgable people, hopefully someone can help shed some light onto my problem.

I have a flash site, and a contact page which has a form on it, the form is a small one, i just want it as a quick contact, so a visitor can send me a message and i get it emailed, along with the visitors email address, which is requested as one of the fields

I cannot get this form to work though

i guess the best way for someone to help would be to post the form detail, and the PHP file info, hopefully to expert eyes the fault is obvious (and easilly fixed)

(ps- I got the PHP file from a free download, rather then try build one from scratch, i read the help notes with it, but to my best following, i still dont get results, but im probably not changing it correctly)

OK, In my movie I have a contact form
The form has 4 input text fields, and a submit button
The fields variable names are;
----------
Your_name
Your_email
Field_1
Message
----------

Under the ‘actions’ of the Submit Button, I have the following;

----------
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe<this._totalframes) {
this.nextFrame();
}
} else {
if (this._currentframe>1) {
this.prevFrame();
}
}
}
on(rollOver) {
this.gotoAndPlay("s1");
}

on(rollOut, releaseOutside) {
this.gotoAndPlay("s2");
}

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
--------------

I believe the most of that text above is for the effect of the submit button, but the bottom part is where it references the PHP form I have to email me the results…. The PHP file is named; email.php

The content of the file email.php is as follows;
--------------
<?php

$sendTo = "myemail@myemail.co.uk";

$subject = "My Flash site reply";

$headers = "From: " . $_POST["your_name"] ." ". $_POST["field_1"] . "<" . $_POST["your_email"] .">
";

$headers .= "Reply-To: " . $_POST["your_email"] . "
";

$headers .= "Return-path: " . $_POST["your_email"];

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

?>





When I test this, it doesn’t appear to do anything when I click the Submit Button… and no email is sent to me



If anyone can help me out, id appreciate it a lot!

thanks for even looking..... bit long winded eh
for the past couple days, i been on this non stop and i feel like this bloke-->

Contact Form - Flash 8
Hi,

I need help with creating contact form even if it requires using php in flash.

The design of this contact form can be seen here

What I need here is "name", "email", "comments" to be replaced with user's text when he clicks on any of this.
+ of course a box to send the mail when clicked. (yes...I forgot to add that in the design :d )

Please help me if you know this. I need it done as soon as posible.

Thanks

Regards

[F8] Flash Contact Form
Hi, i've recently uploaded my portfolio site to the web and I'm having trouble with the contact form. My Flash site is here:

www.stuarthamiltonportfolio.co.uk (go to contact)

The tutorial to do the form is here:

http://www.kirupa.com/developer/acti..._php_email.htm

I've followed it but its not working. The contact form fla i created is attached to this message. If anyone has experience with flash forms please let me know wot I'm doing wrong, thanks.

Flash Contact Form
Hii
I created a flash contact form using a tutorial and I can't get it to work with the gdform.php file of the godaddy.com server that is hosting my site.

I'm not familiar with this because I have never done it before, so far what I have done is to ad the name of the file in the godaddy sever "/gdform.php" to the flash form but it doesn't work.


This is the part of the flash form that should be dealing with sending the variables to the php file.


Code:

// ---------<Sent Form>------------ \
var feedbackForm:LoadVars = new LoadVars();

function sendForm () {
feedbackForm.email_to = "alex@alexcreative.com";
feedbackForm.visitor_name = _parent.contactForm.userName.text;
feedbackForm.visitor_email = _parent.contactForm.userEmail.text;
feedbackForm.visitor_comments = _parent.contactForm.userComments.text;

feedbackForm.send("/gdform.php", "POST");

}
// ---------</Sent Form >------------ \


this.contactForm.userName.tabIndex = 1;
this.contactForm.userEmail.tabIndex = 2;
this.contactForm.userComments.tabIndex = 3;

This is the information inside the gdform.php file

Code:
<?php
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET"){
$query_vars = $_GET;
} elseif ($request_method == "POST"){
$query_vars = $_POST;
}
reset($query_vars);
$t = date("U");

$file = $_SERVER['DOCUMENT_ROOT'] . "/../data/gdform_" . $t;
$fp = fopen($file,"w");
while (list ($key, $val) = each ($query_vars)) {
fputs($fp,"<GDFORM_VARIABLE NAME=$key START>
");
fputs($fp,"$val
");
fputs($fp,"<GDFORM_VARIABLE NAME=$key END>
");
if ($key == "redirect") { $landing_page = $val;}
}
fclose($fp);
if ($landing_page != ""){
header("Location: http://".$_SERVER["HTTP_HOST"]."/$landing_page");
} else {
header("Location: http://".$_SERVER["HTTP_HOST"]."/");
}


?>

Any ideas what should I do to get this flash form to work?

Thanks

Alex

Help In My Flash Contact Form
Hi please help me in my flash site contact form. It isn't working. My server accepts php. I have no codes for layer 2 and I don't have contact.php yet here are the codes of the following reset and submit button please help me:

CODE IN THE RESET BUTTON

on (rollOver){this.gotoAndPlay("s1");}
on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
on (release) {
_parent.t1_2 = "Your full name:";
_parent.t2_2 = "E-mail address:";
_parent.t3_2 = "Your telephone:";
_parent.t4_2 = "Message:";
}


CODE IN THE SUBMIT BUTTON

on (rollOver){this.gotoAndPlay("s1");}
on (releaseOutside, rollOut){this.gotoAndPlay("s2");}
on (release) {
_parent.t1_2 = "Your full name:";
_parent.t2_2 = "E-mail address:";
_parent.t3_2 = "Your telephone:";
_parent.t4_2 = "Message:";
}

Help With My Contact Form In Flash
Hi all,

I think im going @$@##%%$ insane hehehe!!

Ive followed many tutorials on creating a Flash contact form that sends variables to my PHP script to send an email - but with nooo luck...

This is my PHP:
-----------------------
<?php

ini_set("SMTP","smtp.tunnelvisiondesignz.com");
ini_set("sendmail_from","mail@tunnelvisiondesignz. com");
$to = "mail@tunnelvisiondesignz.com";
$subject = "Flash Contact Form Submission";
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "

Message: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "
Reply-To: $theEmail";

mail($to,$subject,$message,$headers);

?>
------------------------

and this is my actionscript: (i have 3 input fields with instance names as below)
----------------------------------
stop();

var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

submit_btn.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://www.tunnelvisiondesignz.com/formtest.php",receiveLoad);

}
-------------------------------

I ll do anyyyything if someone can please please please assist me!!

many thanks,
Ruan

Flash Contact Form
I am using flash CS3 with actionscript 2.0 and PHP to make a contact form, and i have been following a tutorial, and this is the fourth time i have followed this tutorial and i keep getting the same error, i have emailed the person that made the tutorial but its been about a month now and he hasnt emailed me back yet so i was wondering if anyone here would know. I uploaded the PHP file onto my webserver and when i run the form and press the send button after filling the fields out i get a message on the output box that says "Error opening URL 'http://www.costawurks.com/send.php'"

does anyone know why this happened and how to fix it?

thanks in advanced

Help With My Flash 8 Contact Form
I have it made and everything but I just wont send to my email. I followed this tutorial: http://www.gotoandlearn.com/play?id=50

Using PHP With Flash (contact Form)
I am trying to get a contact form on a flash site to work and for some reason the PHP isn't forwarding the message to my email. Below is the flash code I have used as well as the document I have saved as contact.php. Thank you so much for the help. This is the last thing I need to complete for the site and I just can't seem to get it right. Thanks.

Flash Code For the Submit Button:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe<this._totalframes) {
this.nextFrame();
}
} else {
if (this._currentframe>1) {
this.prevFrame();
}
}
}
on (release) {
this._parent.getURL ("contact.php","_blank","GET");
this._parent.name = "Your Name:";
this._parent.email = "Your Email:";
this._parent.phone = "Your Phone Number:";
this._parent.text4 = "e-mail:";
this._parent.message = "Your Message:";
}



Here is what I have for Contact.php:
<?php

$your_name = $_GET['name'];
$your_email = $_GET['email'];
$your_phone = $_GET['phone'];
$your_message = $_GET['message'];

$recipient_email = "info@dreammediaweddings.com";

$subject = "from " . $your_email;
$headers = "From: " . $your_name . "<" . $your_email . ">
";
$headers .= 'Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
$content .= "Phone: <b>" . $your_phone . "</b><br>";
$content .= $your_message;
$content .= "<br></body></html>";

mail($recipient,$subject,$content,$headers);
?>
<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>

Using PHP With Flash (contact Form)
I am trying to get a contact form on a flash site to work and for some reason the PHP isn't forwarding the message to my email. Below is the flash code I have used as well as the document I have saved as contact.php. Thank you so much for the help. This is the last thing I need to complete for the site and I just can't seem to get it right. Thanks.

Flash Code For the Submit Button:

onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this._currentframe<this._totalframes) {
this.nextFrame();
}
} else {
if (this._currentframe>1) {
this.prevFrame();
}
}
}
on (release) {
this._parent.getURL ("contact.php","_blank","GET");
this._parent.name = "Your Name:";
this._parent.email = "Your Email:";
this._parent.phone = "Your Phone Number:";
this._parent.text4 = "e-mail:";
this._parent.message = "Your Message:";
}



Here is what I have for Contact.php:
<?php

$your_name = $_GET['name'];
$your_email = $_GET['email'];
$your_phone = $_GET['phone'];
$your_message = $_GET['message'];

$recipient_email = "info@dreammediaweddings.com";

$subject = "from " . $your_email;
$headers = "From: " . $your_name . "<" . $your_email . ">
";
$headers .= 'Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
$content .= "Phone: <b>" . $your_phone . "</b><br>";
$content .= $your_message;
$content .= "<br></body></html>";

mail($recipient,$subject,$content,$headers);
?>
<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>

Flash Contact Form
quick question: how do you remove the text formatting/html code from input text fields that have the anti-alias for readability option selected? i have always used bitmap fonts in my input fields when dealing w/ flash contact forms and everything's worked fine, but now i'm using anti-alias for readability text and messages sent from my contact form show up like this:
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Century Gothic" SIZE="11" COLOR="#CCCCCC" LETTERSPACING="0" KERNING="0">testing</FONT></P></TEXTFORMAT>

i figured it out:
i was using a var to transfer text in and out of each input text field, which seems to be good for everything except the sending of the variable contents to the php file. so, after validation, i just sent the contents of the text field instead of the contents stored in the memory location indicated by the var (i.e. firstName.text instead of the var firstNameContent). hope this helps anyone else who has ran into this.






























Edited: 08/10/2008 at 06:48:28 PM by _name

Contact Form - Flash 8
Hi Guys

I am having a problem with my contact form. Everything works fine and I receive all the data I'm supposed to get when a user successfully enters their details etc. The browser also returns the flash success or failed page, however upon successfully completing the form the browser throws up an unwanted additional php page in a new window containing my echo message. This php page does not show when a user omits the required fields, the flash failed message page shows up as supposed to do.

Can anyone help me with this? I need to get shot of this unwanted php page popping up in a users browser.









Attach Code

My Actionscript code is:

stop();

name_txt.tabIndex = 1;
email_txt.tabIndex = 2;
tel_txt.tabIndex = 3;
message_txt.tabIndex = 4;

send_btn.onRelease = function() {
var my_lv:LoadVars = new LoadVars();

my_lv.fromname = name_txt.text;
my_lv.fromemail = email_txt.text;
my_lv.fromtel = tel_txt.text;
my_lv.frommessage = message_txt.text;

if(name_txt.text != "" && email_txt.text != "" && message_txt.text != "")
{
my_lv.send("contact.php","POST");
gotoAndStop("success");
}
else
{
gotoAndStop("failed");
}
}

My Php Code is:

<?php

$sendto = 'email@email.co.uk';
$subject = 'Email enquiry form for Cyberprojects';
$name = $_POST['fromname'];
$email = $_POST['fromemail'];
$tel = $_POST['fromtel'];
$message = $_POST['frommessage'];
$message = stripslashes($message);

$content = "Name: " . $name . "

";
$content .= "Email: " . $email . "

";
$content .= "Tel: " . $tel . "

";
$content .= "Message: " . $message;

if(mail($sendto,$subject,$content))
{
echo 'response=passed';
}
else
{
echo 'response=failed';
}

?>

Looking forward to any suggestions anyone can shoot my way.

Flash Contact Us Form
Hey Everyone,

I need to get a contact us form in a flash site to send an email to me when someone submits it. I bought a template (http://www.graphicworx.us/details.php?gid=100&sgid=&pid=252) and it has an area for contact us, but the form doesnt actually work. The template seemed easy enough to be able to get to that page, took some searching in there, so i just need to somehow add some action script that can send me the info.

Any ideas?

Flash Contact Us Form
Hey Everyone,

I need to get a contact us form in a flash site to send an email to me when someone submits it. I bought a template (http://www.graphicworx.us/details.php?gid=100&sgid=&pid=252) and it has an area for contact us, but the form doesnt actually work. The template seemed easy enough to be able to get to that page, took some searching in there, so i just need to somehow add some action script that can send me the info.

Any ideas?

Flash Contact Form
I was wondering if anyone had any information on creating a "Contact Form" in Flash which sends information entered to an email address. I have done this with asp and etc., but have never done this while creating a web page completely in Flash. ANyone have any useful information?

Thanks.

Contact Flash Form Without PHP/ASP/CGI
Hi everyone,

Would anyone know how can I create a contact form in Flash MX that wouldn't need any PHP,ASP,or CGI. I originally did my contact form in PHP only to find out that the server I have for my site doesn't support any of it. My web host had this instruction though, to add this piece of html code <form method=post action="web hosting address"> to the html forms I've created. I'm not sure where to incorporate this since I'm doing the forms in Flash.

Would really appreciate it if anyone could provide any solution or a .fla file perhaps?

Thanks!!

-Clarisse

Flash And Php Contact Form
Hi, I'm trying to build a contact form, but don't receive any emails.

I don't know what's the problem, is anyone could help me?
I've attached the files .

Thanks/

Need Php Flash Contact Form
Hi,
I have php test send form, I would ilke to include this file to my flash conatct form, and i don't have any clue how to do that. Please any help will be appreciate.

Thank you guys.
Here's the attached file, you'll understand what i meant.

PHP - Flash Contact Form...
hey guys/girls...

i have done a php contact form with flash.. and somehow it doesnt send it to my mail.. the link is this.

http://www.chrisrick.se/chris/

the php and the action script is right... if any of you want i can post them up on here.. just let me know..

please help

PHP-Flash Contact Form?
Hey peeps!

I am trying to get this contact form working, but no luck. Anyone knows why?

the htm page is found here: www.danielaalliegro.com/contactform.htm

PHP file:

<?php
/************************************************** *
* PHP 4.1.0+ version of email script. For more
* information on the mail() function for PHP, see
* http://www.php.net/manual/en/function.mail.php
************************************************* **/


// First, set up some variables to serve you in
// getting an email. This includes the email this is
// sent to (yours) and what the subject of this email
// should be. It's a good idea to choose your own
// subject instead of allowing the user to. This will
// help prevent spam filters from snatching this email
// out from under your nose when something unusual is put.

$sendTo = "contact@danielaalliegro.com";
$subject = "danielaalliegro.com contact reply:";

// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.


// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];

// now we can add the content of the message to a body variable
$message = $_POST["message"];


// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

?>

Flash file can be downloaded here: http://www.danielaalliegro.com/Kirup..._php_email.fla

thank you very much!
Mario

Flash Contact Form
i wasnt sure where to post this, i used the tutorial at
http://www.kirupa.com/developer/acti..._php_email.htm
to make a flash contact form (hence both flash and php), which worked on its own but then didnt work once i put it into my site, any suggestions?

Pls Help In Flash Contact Form
Hi,
I want to include a flash contact form in my website, so I followed senocular's tutorial (http://www.kirupa.com/developer/acti..._php_email.htm). Before I start to redesign it, I tested it out first to make sure it works, by creating an account in freehostia. I made an html and uploaded the source files with the html. The only details I changed from the source files is in the email.php source file --- [IMG]file:///C:/DOCUME%7E1/ADMINI%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg[/IMG]$sendTo = "my email address"; And then I open the url in freehostia, I saw the form and I tried it out. But when I checked my destination yahoo email add, the mail I supposedly sent isn't there. Pls pls help, thanks!!!



P.S. If this is helpful--This is how senocular's email.php file looks like
<?php

$sendTo = "iputmyyahooemailaddhere";
$subject = "My Flash site reply";

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";

$headers .= "Reply-To: " . $_POST["email"] . "
";

$headers .= "Return-path: " . $_POST["email"];

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

?>

Flash Contact Form
I have created a Contact Form in Flash MX, However i want it to be able to send the message using ASP. Does anyone know where i can download or find information on how to do this?

Any help would be appreciated.

Flash Contact Form HELP
I have a site beanodesigns.com.au and i want to put in a flash contact and question form.

I want to have as subject headings

From:
Reply email:
Product questioned:
Question:

Send:

Where can i find some good tutorials on this?

Contact Us Form Using Flash Mx ...
Howdy folks,
Here's the deal.
i would like to have a "contact us form" in my flash mx site that i'm buildning (compatible with earlier versions of course).
i know i can't be the first to ask such a question but after going through 15 pages of questions here i've decided to post my own, 'cos obviously i've missed it.

Fixing an HTML version isn't a problem and i do not want to have a "popup" either.

So the question really is, would there be a step by step tutorial out there which could help me on my way? i believe that this is a "large" question involving my isp who uses CGI ( Matt's Free Perl CGI Scripts -FormMail), gathering information, reset button, untold ammounts of ActionScript etc.

hope there's enough details for you to understand my problem which basicaly is ..i have no idea please help.

If not thanks anyway for your time.

Ramsey
 
 

Contact Form Flash, Php
Hello guy!!
I did a research for a contact form flash, php tutorial, i only found tutorials where i can send the name, subject, and message.
But i need to find a flash contact form with more info, ie: company, country, phone, mobile...)
Anyone can help?
THANKS A LOT!!

Contact Form In Flash
Last edited by Flame X : 2005-09-20 at 15:42.
























Hey all, I know absolutely nothing about PHP...so I was wondering if someone could direct me to a tutorial or tell me how to make a contact form IN FLASH. There are plenty of standard contact form tutorials, but I need to know how to make one in flash...thanks alot!

Contact Form In Flash
I have noticed that there are a few sites that have a contact form built into the site.

Example: http://www.255.ch/start.html
and click on the Contact button.

How do I go about creating a contact form??
Where does the information go?
Does anyone have some suggestions, tutorials, or links??

Thank you for any help you can provide

AS2 - Help On Flash/PHP Contact Form:
Last edited by Nutrox : 2008-01-27 at 06:58.
























All Hail the kings of flash,

For starters I am using Flash CS and This is one of my few sites I have designed. I'm not a total **** when in comes to AC but with php...... you could saftly say that I am a semi vergin.....

NOTE TO KEEP IN MIND: My client came across a website of which he wanted the same..... several options were presented but noting doing soooooo..... dont blame me if it looks a bit too similar to a particular site...

THE PROBLEM: The flash file doesnt seem to get delivered! I have the base flash file (level 2) to which I load the contact page (Level3) the table details is as follows.

your name: (name_txt)
your email: (email_txt)
Subject: (subject_txt)
message:(message_txt)
Send mail Button (submit_mc)

Flash Script I have used:


ActionScript 2.0 Code:
var mainTL:MovieClip = this;
 
submit_mc._alpha = 40;
 
var dataSender:LoadVars = new LoadVars();
 
var dataReceiver:LoadVars = new LoadVars();
 
var formCheck:Object = new Object();
formCheck.onKeyUp = function() {
    if (name_txt.text != '' &&
            email_txt.text != '' &&
            subject_txt.text != '' &&
            message_txt.text != '') {
        //clear any alert messages
        alert_txt.text = '';
        //enable the submit button
        submit_mc._alpha = 100;
    } else {
        //remain disabled until all fields have content
        submit_mc._alpha = 40;
    }
}
 
Key.addListener(formCheck);
 
 
var normal_border:Number = 0x7A7777;
var focus_border:Number = 0xFA8D00;
 
var normal_background:Number = 0xECECE6;
var focus_background:Number = 0xE9E3E3;
 
var normal_color:Number = 0x776D6C;
var focus_color:Number = 0x000000;
 
inputs=[name_txt,email_txt,subject_txt,message_txt];
 
for( var elem in inputs) {
    inputs[elem].border = true;
    inputs[elem].borderColor = normal_border;
    inputs[elem].background = true;
    inputs[elem].backgroundColor = normal_background;
    inputs[elem].textColor = normal_color;
    /*this takes care of applying the "normal" style to each of the four input fields;
        the following TextField prototypes handle highlighting when an input field
        gains focus and resetting to normal when a field loses focus*/
    inputs[elem].onSetFocus = function() {
        this.borderColor = focus_border;
        this.backgroundColor = focus_background;
        this.textColor = focus_color;
        }
    inputs[elem].onKillFocus = function() {
        this.borderColor = normal_border;
        this.backgroundColor = normal_background;
        this.textColor = normal_color;
    }
}
 
Selection.setFocus(name_txt);
 
submit_mc.onRelease = function() {
    //final check to make sure fields are completed
    if (name_txt.text != '' &&
            email_txt.text != '' &&
            subject_txt.text != '' &&
            message_txt.text != '') {
        alert_txt.text='';//clear any previous error messages or warnings
        //advance playhead to frame 2 - the "processing" message
        mainTL.play();
        //assign properties to LoadVars object created previously
        dataSender.name = name_txt.text;
        dataSender.email = email_txt.text;
        dataSender.subject = subject_txt.text;
        dataSender.message = message_txt.text;
        //callback function - how to handle what comes abck
        dataReceiver.onLoad = function() {
            if (this.response == "invalid") {
                mainTL.gotoAndStop(1);
                alert_txt.text = "Please check email address - does not appear valid."
            } else if (this.response == "passed") {
                mainTL.gotoAndStop(4);
            }
        }
        dataSender.sendAndLoad("processEmail.php", dataReceiver, "POST");
    } else {
        alert_txt.text = "Please complete all fields before submitting form.";
    }
}

I have the .php file placed in the root folder. But the message doesn’t seem to be delivered. The PHP script is as follows.


PHP Code:
<?php
 
//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$subject=$_POST['subject'];
$message=$_POST['message'];
$name=trim($name);
$email=trim($email);
$subject=StripSlashes($subject);
$message=StripSlashes($message);
 
$toaddress='subandrio@eo-me.com';
 
if (preg_match ("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]]).)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]).){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i", $email)) {
    mail($toaddress,$subject,$message,"From: $name <$email>
Reply-To: $email
Return-Path: $email
");
     //clear the variables
     $name='';
     $email='';
     $subject='';
     $message='';
     echo "response=passed";
    } else {
        echo "response=invalid";
        exit;
    }
   
?>

I would much appreciate your help guys!!!!! cant seem to figure out what I am doing wrong..... Is it cause I have the contact form in Level 3?

Flash 8 With Asp For Contact Form.
I have a contact form made in flash 8 but my hosting is window based asp. i have read the tutorial with seding flash and php. Can someone help??

Flash And ASP Contact Form.
Does anyone have a ASP script that works with Flash for sending a simple contact form; name, email, subject, message ?

I have only found 1 tutorial on Web Thang and it doesnt seem to work as the thank your message redirects to an htm page and I just want my flash file to go to the next frame. I have found a lot of PHP examples but my server only supports ASP.

Any code or links would be helpful thanks.

Contact Form In Flash
Where is a good site or place of reference for making a contact form in flash ?

Contact Form In Flash Site
I have made a site in flash and I want to put a contact form in it and tie it with a cgi script in the server. I know how to make a form in HTML. Can sombody guide me in how I can do it in flash.
Thanks in advance.
Anbis

Flash Contact Us Form In GREEK
Hello,

I created greek version of a flash form (in MX Version). I am able to enter greek characters into form fields and When the form is submitted the mail is sent succesfully to my email id. When I check the mail(even when I check my mail box in greek language, i can check mail in multi language) I found other characters instead of greek characters. Iam using CGI script for form to mail.

Any body can help on it??

Thank you,
-Saash.

[F8] Adding Flash Contact Form
I am trying to use a contact form in flash 8. The form is not an issue but I can not figure out how to make the submit button email to some one specific. There has got to be a way to make it work. Any ideas will be appreciated.

Thanks!!!!
Dooodlebug77

[F8] Contact Form Page Within Flash
Guys,

I've got a contact form page within my flash movie, which I'd like to 'link' to a cgi script, simple form-mail stuff, but I just have no idea on how to get these fields (See site www.rachelnatsis.com/flash/index.html, contact me page) to send to cgi once you hit the send button.
I was thinking of simply creating a pop up window which is driven by html, but I really would like to use the form fields within the movie.

I've done some searching on flash help files, etc.. but I'm not entirely sure how to tackle this one..

In my library, i've got a button which is the large text box (description) with the send|reset on it.
and the 'name' field/box is a seperate button also.

Hopefully someone can shed some light on this one...

Copyright © 2005-08 www.BigResource.com, All rights reserved