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




Form Not Working...



Hi!
I've been trying to create a form that sends e-mail through CDONTS, but it's not working here. The movie itself doesnt even work, not to mention sending e-mail. Can somebody pls take a look at the files and tell me what's wrong with it?
Thank you, I appreciate your help!



FlashKit > Flash Help > Flash MX
Posted on: 07-28-2003, 08:26 AM


View Complete Forum Thread with Replies

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

Contact Form Not Working In IE But Working In Mozilla
got a problem that I just can't figure out.
I have a feedback that was working fine. Key word "was".
I added a frame in the form MC to include a Thank You screen. But then it stopped sending in IE, but works in Mozilla.
I tried taking the extra frame out but still doesn't work in IE anymore.

any suggestions?
button

Code:
on (release) {
form.loadVariables("email.php", "POST");
}
script on the php page

Code:
<?php
$sendTo = "alvin@diggy.com.au";
$subject = "Gisler contact";
$headers = "From: " . $_POST["name"] ." <" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];
$message = "Phone:" . $_POST["phone"] ."
Country: " . $_POST["country"] ."
Message: ".$_POST["message"]." ";
mail($sendTo, $subject, $message, $headers);
?>

Why Is My Php Email Form Not Working Here, But Working Elsewhere?
Hey everyone,

I wonder if you might be able to answer what is potentially a stupid question..

On this site I created a php email contact form and it's working fine: http://japanese-acupuncture.110mb.com/main.html

The contact form is in the clinic info tab on the side bar.

I've just set up a new site, and I copied the movie clip I used for the above site straight into the new one before adjusting how it looks to fit the layout of the new site. I'm going to use it in two places, and I know that I'll need to duplicate the movie clip for that. The site it's up on doesn't support sendmail, but I'm not worried about that yet.

What I can't figure out is why my text fields no longer let me input text, even though the movieclip is exactly the same as on the above site. The new site address is here: http://www.users.on.net/~davidgardner/

The contact form on the new site is on the 'register for a course now' tab, and on the 'contact us' page.

The only thing I can think of, is that the problem is caused by the contact form being buried in a series of movieclips.

If anyone has any idea what the problem is I'd be very appreciative!

Thanks,
David

CGI Form Not Working Right
I have a flash form thats not working right I have seen several samples and I tought I had it all down but my work is not working.


here's the action script that my submit button has
on (release) {
subject = "Feedback Form for Treesmith";
recipient = "info@treesmith.net";
getURL("getURL("http://www.treesmith.net/cgi-sys/formmail.pl", "POST");
gotoAndPlay("main", "ThankYou");
}


but it does not work, I have also tried the loadvariables with out any success. Here's the documentation that I found from the website hosting the site.


"To use Formmail, you need to create a form on one of your web pages. The form action line should be
<FORM ACTION="/cgi-sys/formmail.pl" METHOD="POST">

formmail.pl will do all the programming work for you. You alter the behavior of Formmail by using hidden fields in your form.


There is only one form field that you must have in your form for FormMail to work correctly. This is the recipient field.

Field: recipient

Description: This form field allows you to specify to whom you wish for your form results to be mailed. Most likely you will want to configure this option as a hidden form field with a value equal to that of your e-mail address.

Syntax:

<input type=hidden name="recipient" value="your_username@localnet.com">.


can you please tell me what im doing wrong.
The site that im working on is at http://www.treesmith.net/treesmith.html select contact from the menu.

thx

PHP Form Not Working
Hello.
I have a real simple PHP form that isn't working. I should say, my input feild vars are not getting passed AND the mail isn't getting sent. Here is the PHP script (I have tested that php is installed on the server):


Code:
<?php
$ToEmail = "mfebrey@comcast.net";
$ToSubject = "D1S : Contact Form";
$EmailBody = "From: $nameTxt
Email: $emailTxt

Message:
$messageTxt
";
mail($ToEmail, $ToSubject, $EmailBody);
//echo "Client Name : " . $nameTxt

?>
and here is the actionscript on the button in the Flash file:


Code:
enter_mc.onRelease = function() {
loadVariablesNum ("mailform.php", 0, "POST");
//trace("triggered");
};
Can't figure it out. I am using instance names not var names for the input feilds. Would that make a difference? I have hard coded all the email info into the php file and the mail still didn't work. I am at a loss.

Any help would be greatly appreciated. I can post files if need be.

Thanks,
1M.

Form Not Working, Can You Help
here is my flash form attach.


here is my php code that seems to work fine.

when I hit the submit button nothing happens, on the origanl it works fine, locally or remotely


thanks


PHP Code:




[size=3]
<?  

$adminaddress = "info@blah.com";
$siteaddress ="http://www.blah.com";
$sitename = "The blah.com";

//No need to change anything below ...
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

// Gets the POST Headers - the Flash variables
$action = $HTTP_POST_VARS['action'] ;
$name = $HTTP_POST_VARS['name'] ;
$email = $HTTP_POST_VARS['email'] ;
$comments = $HTTP_POST_VARS['comments'] ;

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address

if ($action == "send") {
    //
    mail ("$adminaddress","Info Request",
    "A visitor at $sitename has left the following information
    Name: $name
    Email Address: $email
    The visitor commented:
    ------------------------------
    $comments
    
    Logged Info :
    ------------------------------
    Using: $HTTP_USER_AGENT
    Hostname: $ip
    IP address: $REMOTE_ADDR
    Date/Time:  $date","FROM:$adminaddress" ) ;
    
    //This sends a confirmation to your visitor
    mail ("$email","Thank You for visiting $sitename",
    "Hi $name,
    Thank you for visiting $sitename!
    if needed I will be contacting you shortly,
    $sitename
    $siteaddress","FROM:$adminaddress") ;
    
    //Confirmation is sent back to the Flash form that the process is complete
    $sendresult = "Thank you. You will receive a confirmation email shortly.";
    $send_answer = "answer=";
    $send_answer .= rawurlencode($sendresult);
    echo $send_answer;
} //


?>
[/size]

Got My Form Working - Well Almost
My attempt to get a working contact form continues... I've been at this for about 4 days. I finally found a form that works for me. It uses sendAndLoad to pass on to the php script.

After carefully copying all the layers from the form FLA one by one into my main project, I uploaded to server and the form works - yahoo! ---- but now it has messed up my menu.

The form and menus do work - if the user fills the form and submits. BUT -- If the user decides not to fill out the form and instead return to another page via the main menu links, the form cycles through it's various actions - showing all of it's alert messages. Each time you click a menu link it displays one of the alert messages from the form, when it should just leave the form page and go to a new page.

After it cycles through all of the message functions associated with the form, THEN the menu resumes working as it should.

Not good... but I have no idea how to correct it. I sure need some help here, may be a simple fix.

The form section is four frames long. One layer has four stops on it. The rest of the actionscript is on it's own layer on frame one.

Here's that script:

Code:
//start off with submit button dimmed

submit_mc._alpha = 40;

//create the LoadVars objects which will be used later
//one to send the data...
dataSender = new LoadVars();

//and one to recieve what comes back
dataReceiver = new LoadVars();

/*
create listener for Key Object
this is just a U.I. thing - "wakes up" the submit button
when all fields have at least some content
*/

formCheck = 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);

/*#######SET STYLES FOR TEXT FIELDS#######*/

//define styles for both normal and focussed
//set hex values here that work with your site's colors

normal_border = 0x7A7777;
focus_border = 0xFA8D00;

normal_background = 0xECECE6;
focus_background = 0xE9E3E3;

normal_color = 0x776D6C;
focus_color = 0x000000;

//create an array containing the fields we wish to have styles applied to

inputs=[name_txt,email_txt,subject_txt,message_txt];

/*
a "for in" loop now iterates through each element in the "inputs" array
and applies our "normal" formatting to each input text field
*/

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
*/

//create a textField prototype to handle set and kill focus behaviors

TextField.prototype.onSetFocus = function() {
this.borderColor = focus_border;
this.backgroundColor = focus_background;
this.textColor = focus_color;
}

TextField.prototype.onKillFocus = function() {
this.borderColor = normal_border;
this.backgroundColor = normal_background;
this.textColor = normal_color;
}

//finally: make the first field (name_txt) selected when the movie loads

Selection.setFocus(name_txt);

/*DEFINE SUBMIT BUTTON BEHAVIOR*/

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
_root.play(458);
//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") {
_root.gotoAndStop(457);
alert_txt.text = "Please check email address - does not appear valid."
} else if (this.response == "error") {
_root.gotoAndStop(459);
} else if (this.response == "passed") {
_root.gotoAndStop(460);
}
}
//now send data to script
/*************************
NOTE: the line below presumes the Flash swf file and php script are in the
SAME DIRECTORY on your server. If this is not the case (if for example you
wish to put the php script along with other similar items in a "scripts"
directory) you MUST MODIFY THE PATH. Otherwise the Flash movie won't be
able to locate the php script.
*************************/
dataSender.sendAndLoad("processEmail.php", dataReceiver, "POST");
} else {
//warning if they try to submit before completing
alert_txt.text = "Please complete all fields before submitting form.";
}
}
Any help would be appreciated.

Form Not Working.
Hello all I am working on this form for school where you check the boxes and text appears on the code. Everything is typed in right without errors but its not working here is the actionsscript for it


//save a referecne to the timeline that contains the form
myForm = this;
//put all the checkboxes into one group
// by setting a property called "group"

Group01 ="firstQuestion";

checkboxAmazing.group = Group01;
checkboxLovable.group = Group01;
checkboxIntelligent.group = Group01;
checkboxOutToLunch.group = Group01;

//create a listener object for the submit button
submitButtonListener = new Object();

//submit button listener, click handler method
submitButtonListener.click = function()
{
// user clicked the submit button; display message
var InitialMessage:String ="You are ";
var msg:String = InitialMessage;
//the string we use to join adjectived
var AndString:String = " and";

// search for the checkboxes on the form
}
for (var i in myForm)
{
var currentFormItem = myForm [ i ];

//is the current form item a checkbox that is
//part of our group that contains adjectives
if (currentFormItem.group == Group01 )
{
//is the checkbox checked?
var isChecked = currentFormItem.selected;
if ( isChecked )
{
// add the cureent adjective to the message
msg += currentFormItem.label + AndString;
}
}
}
// check if the message is still equal to the initial message
// (ie., the user has not checked any of the boxes)
if ( msg == InitialMessage)
{
msg += " not one to click checkboxes, it appears!";
}
else
{
// remove the last "and" , its extra space
var numLettersToRemove:Number = AndString.length;
var msgLength:Number = msg.length;
msg = msg.substring ( 0, msgLength - numLettersToRemove );
//don't forget the period to end the sentence.
msg += ".";
}
//change the text in the TextArea component at the topo
//to the message we just created

StatusMessage.text = msg;




//make the submit button listener listen for the click events

submitButton.addEventListener("click", submitButtonListener);



here is the link to the swf file www.dkdesignz.com/checkbox2.swf

Any help on what I did wrong would be greatful,

Daniel.

Form In AS3 Not Working
Hiya,

I am having a problem emailing form content out of flash. I am on a time crunch (who isn't?) and I would greatly appreciate anybody who has any advice on what to do next. Below is my code.

Here is my php code.


Code:
<?php

$sendTo = "romeo@whoopdesign.com";
$subject = "Thought of the week test";
$headline = $_POST["totwHeadline"];
$content = $_POST["totwContent"];
mail($sendTo, $subject, $headline, $content,);

?>

and here is my actionscript:

ActionScript Code:
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("sendEntry.php");
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;
varSend.data = variables;

stop();

send_btn.addEventListener(MouseEvent.CLICK, sendActions);

function sendActions(event:MouseEvent):void
{
variables.totwHeadline = totwHeadline.text;
variables.totwContent = totwContent.text;
varLoader.load(varSend);
}

Thanks in advance,

-R

How To Get A Form Working Right
I am having a most stressful conflict with forms. I made a form in flash mx and i named all the variables correctly, then i made a submit button, i put this as the actionscript:

on(release){
recipient = "myemail@mysite.com";
subject = "Form Submission";
getURL(".../formmail.pl","_blank","GET");
getURL("index.htm","_self");
}

It doesn't work! I put the formmail.pl in the right directory and I changed it to the preferences suggested. I need to know some way of going about making a form work on here. Please help me!

Form Not Working...
Hey can someone please take look at my .fla to tell me why the contact form Ive made isn't working, and also why the form fields dont show up.

http://www.spaodesigns.com/Boardriders/contact.fla

This is the tutoial I followed, it was done with Flash MX 2004 maybe this is why it wont work in Flash 8

http://www.kirupa.com/developer/actions ... _email.htm

FEEDBACK FORM NOT WORKING... WHY?
Ok... I've tried both perl and php to send the mail from my flash form and it ain't doing it.

My latest attempt was with perl... look at the script below please and tell me where I am wrong. Oh... the form is in it's own MC ok.

on (release) {
name = _root.feedback.name;
surname = _root.feedback.surname;
email = _root.feedback.email;
url = _root.feedback.url;
message = _root.feedback.message;
s4 = "ok";
ct = 0;
cm = 0;
pc = 0;
for (i=0; i<email.length; i++) {
if (email.charAt(i) == "@") {
cm++;
}
if (email.charAt(i) == ".") {
pc++;
}
}
if ((name == null) || (name == 0) || (name == "name") || (name == "firstname")) {
txt_out = "PLEASE ENTER YOUR NAME";
s4 = "nok";
}
if ((surname == null) || (surname == 0) || (surname == "surname")) {
txt_out = "PLEASE ENTER YOUR SURNAME";
s4 = "nok";
}
if ((email == null) || (email == 0) || (cm<>1) || (pc<1)) {
txt_out = "PLEASE ENTER YOUR EMAIL";
s4 = "nok";
}
if ((message == "****") || (message == "****") || (message == "****") || (message == "****ER") || (message == "****er") || (message == "****er") || (message == "*****") || (message == "*****") || (message == "*****") || (message == "rass") || (message == "Rass") || (message == "RASS") || (message == "bloodclaat") || (message == "Bloodclaat") || (message == "BLOODCLAAT") || (message == "bloodclawt") || (message == "Bloodclawt") || (message == "BLOODCLAWT") || (message == "****") || (message == "****") || (message == "****")) {
txt_out = "PLEASE... NO BAD WORDS!";
s4 = "nok";
}
if ((message == null) || (message == 0) || (message == "message")) {
txt_out = "PLEASE ENTER YOUR COMMENT(S)";
s4 = "nok";
}
if (s4 == "ok") {
txt_out = "";
loadVariablesNum ("http://www.rockwildaz.com/cgi-bin/feedback/mymail.cgi", 0, "POST");
gotoAndPlay ("newMessage");
}
}


...everything else work works except me actually receiving the mail. I even used the tutorial given from FK and it still doesn't work.

Thanks for you help

Flash 4 Form Isn't Working - Why Not?
This may be a script problem but I don't think it is. I am using a predetermined script via earthlink. If I create a form using html then I get forwarded to my necessary webpage and I receive the proper email. If I create the form in flash, then the best I get is a forward to the thank you webpage but I do not get the email.

Here the link to the html source that works:
http://www.nextstepnet.com/Crossroads/Survey.htm

Here is the simple code in flash 4 that will not work:
On (Release)
Set Variable: "RECIPIENT" = "jblausey@earthlink.net"
Set Variable: "THANKURL" = "http://www.nextstepnet.com"
Get URL ("http://www.nextstepnet.com/cgi-bin/mailto", vars=POST)
End On

I have also attempt to use Matt's Script but the best get is a 404

Any help will be greatly appreciated

Working Form Tutorials
Does anybody have a simple conatact form that they know for sure works??? I have tired mnay but none work so I have trying to find out if it is my server or the forms. My server is PHP able, so i don't what the problem is.

I have tried
http://www.flashkit.com/movies/Inter...dex.php?chk=no

and

http://codewalkers.com/tutorials.php?show=10&page=1

and

http://www.actionscripts.org/tutoria...il/index.shtml

but all end up sending me blank. If anyone could try out these tuturoails and see if they work for you and are made properly or if anyone can give a ttorial tey know works so I cna find out fi it is my server or the tutorials, that would very helpful.

Thank you so much.

Mail Form Not Working
i cant get my mailform to work... i used the mailform attached (got off of flashkit) and edited the php file to send to me email address.

i havent changed anything else yet.
and i did upload it to test it, since it wont work unless on a server.

try it out and see if you can find out what is wrong


thanks for your time!
~Jesse

E-mail Form Not Working...
I can't click into or tab into the second and third fields on my form. Here's the scenario...

I've got an e-mail form set up as follows:

1. The actual form is an MC named "Mail" which is nested inside an MC named "Contact"

2. In the MC named "Mail", there are three input text fields with the variable names of

"FirstName", "Email", and "ToComments"

3. In the MC named "Mail" there is a "Send" button with this code:


on (release) {

if (!FirstName.length) {
EmailStatus = "Please Enter your name.";
}

else if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail";
}

else if (!ToComments.length) {
EmailStatus = "Please enter your message";
}

else {
loadVariablesNum ("rodney.php", "0", "Post");
_root.contact.gotoAndStop("thanks");
}
}


4. The MC named "Contact" sits on a specific single frame on my main timeline and is only reached when a button is clicked taking the user to that frame.

The MC loads fine, and when I click in it, I can type into the first input field. No matter what I do, I can't tab into or even click into either of the other two fields.

Any ideas on what I've done wrong or have left out?

Thanks.

Help Email Form Not Working
I downloaded Kirupa's PHP Email form and changed the colors to my liking. When it runs as a standalone swf file (from an html file), it works! See it here:

http://steadyscene.com/form/phpemail.html


However, when I try to implement the form into my navigation links, the form does not work. Nothing happens when the SEND button is clicked.

Here is how I implemented it into my .fla file:


- Modified the colors in Kirupas .fla
- copied all the layers / frames and content from kirupas .fla library and pasted them into a new movie called phpform in my library
- created a button called CONTACT, added this actionscript (which works for all my other buttons and navigation):

on (press) {
this.attachMovie("phpform", "window", 0);
window._x = 0;
window._y = -15;
}

- Highlighted the phpform movie clip in the Library, selected Linkage and set the identifier to phpform (which is required for attach movie actionscript to work)

As you can see here: www.steadyscene.com (click on contact)
It loads the phpform movie with no problems.

Why isnt the send button working? All the actionscript is the same as the original file. Is it a _root or Level issue?

In Kirupas file there are just three layers that holds the content. In my implementation I created a movie then pasted his layers inside phpform.

Any help is appreciated!

SteadyScene

Working With Form Mail
Hi guys is there a good tut on how to configure form mail?
and what would be the action script to add in a form mail, so that they can can send mail to me from my site thanks.

My Flash Form Is Not Working
Hi all,

I've been trying to make a registration form using flash. The details are mailed to an email account. but the php file doesn't seem to run

The form has text boxes, few radio buttons and dropdowns which I assigned to variables. Maybe the variable arent loading properly..I dont know

I read in a tutorial that you have to use loadVariablesNum.

loadVariablesNum ("submit2.php", "0", "Post");

Am I doing something wrong?

Please help I really want this to work

Thanks!!!
Regards
Sampy

Flash Form Not Working
hi,

I've designed a user enquiry form in flash. a movieclip (form) contains diff. textfields of the form. and code for submit button is

form.loadVariablesNum("email.asp", 0, "POST");

The ASP file contains foll. code


<%@ Language=VBScript %>
<html>
<head>
<title>email.asp</title>
</head>

<body>
<%
mname=Request("name")
org=Request("comp")
email=Request("mail")
phone=Request("phone")
web=Request("web")
address=Request("adr1")
city=Request("city")
country=Request("country")
code=Request("zip")
req=Request("message")




dim myMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject="User Enquiry"
myMail.From="as@er.com"
myMail.To="info@sribhumiimpex.com"
myMail.HTMLBody ="new message"
myMail.Send
set myMail = Nothing

dim Mail
Set Mail=CreateObject("CDO.Message")
Mail.Subject="Auto Reply"
Mail.From="info@sribhumiimpex.com"
Mail.To="as@er.com"
Mail.HTMLBody = "Thank you very much for your interest. We will get back to you shortly."
Mail.Send
set Mail = Nothing
%>
</body>
</html>

But the above code is not working fine.
Can anyone help me to solve this. this is quiet urgent.

Regards
Jyothi

Email Form - Why Isn't It Working?
Help.

Site needs to go up today.

PHP email form isn't working for some reason and can't figure why?

Any chance someone could tell me where I'm going wrong!

http://www.londonsprout.com/email.zip

Help!!!!

Flash Form Not Working: Help
I have spent days on this and troubleshooting to get a form to work. Grrrrr. I have no troubles in HTML. So please some help fellas would be awesome. My server has PHP and it is in the right place, also uploaded in ASCII and 755.

I have my form in a movie clip called form. And gave each text object it's variable name in the form clip.

My submit button has;
------------------------
on (release) {
form.loadVariables("cgi-bin/mail2.php","POST");
}
------------------------

my form movie clip has this;
------------------------
onClipEvent(data){
_root.nextFrame();
}
------------------------

Now for like the 4th PHP script I have tried;
------------------------
<?php

//Checks if an email pattern is okay
function emailOK($str) {

if(empty($str)) return false;

if(!ereg("@",$str)) return false;

if(!ereg(".",$str)) return false;

list($user, $host) = explode("@", $str);

if((empty($user)) || (empty($host))) return false;

$badChars = "[ ]+| |+|=|[|]|{|}|`|(|)|,|;|:|!|<|>|%|*|/|'|"|~|?|#|\$|\&|\^|www[.]";
return !eregi($badChars, $str);
}//End Function


function readTextFile($file){
if(!($fp=@fopen($file,"r"))) return false;


$fileContent="";
while (!feof($fp)) {
$fileContent.= fgets($fp, 1024);
}//End while loop


if(!fclose($fp)) return false;

return($fileContent);
}//End function

function sendMsg($to, $toEmail, $sub, $msg, $from, $fromEmail) {
//Compose headers for plain text email
$headers = "MIME-Version: 1.0
";
$headers .= "Content-type: text/plain; charset=iso-8859-1
";
$headers .= "X-Mailer: PHP/".phpversion()."
"; //The mailer name
$headers .= "From: ".$from."<".$fromEmail.">
";
$headers .= "Reply-to: ".$from."<".$fromEmail.">
";

$recipient = empty($to) ? $toEmail : $to."<".$toEmail.">";
return mail($recipient, $sub, $msg, $headers);
}//End function

function cleanUpData($data){
$data=trim($data);
if(get_magic_quotes_gpc()){
$data=stripslashes($data);
}//End if
return($data);
}//End function

function flashEmail($postVars){

$name = cleanUpData(urldecode($postVars["name"]));
$address = cleanUpData(urldecode($postVars["address"]));
$phone = cleanUpData(urldecode($postVars["phone"]));
$email = cleanUpData(urldecode($postVars["email"]));
$message = cleanUpData(urldecode($postVars["message"]));

/*ERROR CHECKING*/

if (empty($email)) {
$status = "Email is empty!
Cannot send message";
die("status=".urlencode($status)."&sent=0&");
}//End if

if (!emailOK($email)) {
$status = "Email is invalid!
Cannot send message";
die("status=".urlencode($status)."&sent=0&");
}//End if

if (empty($message)) {
$status = "Message is empty!
Cannot send an empty message";
die("status=".urlencode($status)."&sent=0&");
}//end if

/*###########################*/

$message = str_replace("
", "
", $message);

$subject = "Contact Form";

$ourName = "name";
$ourEmail = "jared@yahoo.com";

$toSenderMsg = readTextFile("senderThanks.txt");

$toSenderMsg = str_replace("{greetings}", empty($name) ? "Hello" : "Dear ".$name.",", $toSenderMsg);
$toSenderMsg = str_replace("{date}", date("m/d/Y"), $toSenderMsg);
$toSenderMsg = str_replace("{message}", $message, $toSenderMsg);

$ourVersion = readTextFile("websiteMail.txt");
$ourVersion = str_replace("{greetings}", "Hi,", $ourVersion);
$ourVersion = str_replace("{date}", date("m/d/Y"), $ourVersion);
$ourVersion = str_replace("{name}", empty($name) ? "none" : $name, $ourVersion);
$ourVersion = str_replace("{email}", $email, $ourVersion);
$ourVersion = str_replace("{message}", $message, $ourVersion);


$tTasks = 2;
$tDone = 0;


if (sendMsg($name, $email, $subject, $toSenderMsg, $ourName, $ourEmail)) $tDone++;

if (sendMsg($ourName, $ourEmail, $subject, $ourVersion, empty($name) ? $email : $name, $email)) $tDone++;

if ($tDone == $tTasks) {
$status = "Message Sent!
Thank you";
print "status=".urlencode($status)."&sent=1&";
return true;
} else {
$status = "Could not send message because of an internal server error
Please try again";
die("status=".urlencode($status)."&sent=0&");
}//End if
}//End function

flashEmail($HTTP_POST_VARS);

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

PHP Contact Form Not Working
HI, I am stumbling for hours on a tutorial I've been following to submit a "simple" contact form using PHP.
My server supports PHP. I'm on a mac, but I don't think that's the problem?
The tutorial I'm following is here: http://flash-creations.com/notes/con...ontactform.php
I used the same code for the sendemail.php
I've attached the fla.
Cheers

Contact Form Not Working?
Hey guys. I seem to get myself into a problem as soon as I resolve my last one.

My flash contact form was working, now it's not. I click send and it never sends me the e-mail at all. I could understand if I got the email and no contents, but I get absolutely nothing.

My contact form consists of several input boxes (no instance names, but variable names). I'll list the code below.

CLEAR BUTTON

Code:
on (release) {
name = "";
email = "";
message = "";
thankyou._alpha = 0;
}


SEND BUTTON

Code:
on (release) {
if (name eq "" or email eq "" or message eq "") {
stop ();
} else {
loadVariablesNum ("form.php", 0, "POST");
thankyou._alpha = 100;
}
}


FORM.PHP (to process the e-mail after clicking send)

Code:
<?php
$sendTo = "webmaster@phunctional.com";
$subject = "Phunctional.com Form Mailer";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["message"];

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


What am I doing wrong this time?

Form Not Working When Within Movieclip
I have a contact from on my site that loads from the main .swf
on (release) {
_root.contents.loadMovie("form.swf");

but it doesnt work, not all the buttons and text r there how come this happens? and how can i fix it?

Email/PHP Form Not Working
I am trying to make an e-mail form that is integrated into Flash. To do this, I found this tutorial: http://www.kirupa.com/developer/acti..._php_email.htm And have followed it pretty much to the t. However, when I test the form out at http://www.terrieades.com/in_progress/pda/largered.html (click on "Mail"), it never alerts me that the form has been sent, which I have set it up to do. Since I followed the directions so closely, I'm not sure if this is a problem with the AS, or the PHP file.

Here are both:

http://www.terrieades.com/in_progres...a_largered.zip (FLA file)

PHP Code:




<?php
$sendTo = " . $_POST["to"] . ";
$subject = "E-mail from Future PDA";


$headers = "From: Future PDA Demo";
$headers .= "pda_demo@terrieades.com";
$headers .= "Reply-To: pda_demo@terrieades.com";
$headers .= "Return-Path: pda_demo@terrieades.com"];
$message = $_POST["message"];


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







Thanks for any help!

[F8] HELP Form Checkboxes Not Working
Thank you for your interest in my thread!

I am currently making a flash form with input text and checkboxes. Unfortunatley, when I send the information to my e-mail (file.fla => file.php => to email) all input information has been received, but check boxes I clicked on were not received. Below is my Flash Action script.

//
// set form variables
//
mailform = "form.php";
action = "send";
landscapeX = "";
irrigationX = "";
drainageX = "";
maintenanceX = "";
plotplanX = "";
neighborhoodX = "";
renovationsX = "";
annualsX = "";
patiosX = "";
decksX = "";
retainingX = "";
walkwaysX = "";
drivewaysX = "";
waterscapesX = "";
lightingX = "";
gardenX = "";
landscapeartX = "";
fencesX = "";
outdoorX = "";
playX = "";

myCheckboxListener = new Object();
myCheckboxListener.click = function (eventObject) {
}
if (landscapeBox.selected) {
landscapeX = landscapeBox.getValue() ? "" : "Existing landscape"
} else {
landscapeX = landscapeBox.getValue() ? "Existing landscape" : ""
}
if (irrigationBox.selected) {
irrigationX = irrigationBox.getValue() ? "" : "Existing irrigation"
} else {
irrigationX = irrigationBox.getValue() ? "Existing irrigation" : ""
}
if (drainageBox.selected) {
drainageX = drainageBox.getValue() ? "" : "Drainage problems"
} else {
drainageX = drainageBox.getValue() ? "Drainage problems" : ""
}
if (maintenanceBox.selected) {
maintenanceX = maintenanceBox.getValue() ? "" : "Maintenance needs"
} else {
maintenanceX = maintenanceBox.getValue() ? "Maintenance needs" : ""
}
if (plotplanBox.selected) {
plotplanX = plotplanBox.getValue() ? "" : "Plot plan/survey available"
} else {
plotplanX = plotplanBox.getValue() ? "Plot plan/survey available" : ""
}
if (neighborhoodBox.selected) {
neighborhoodX = neighborhoodBox.getValue() ? "" : "Neighborhood covenants"
} else {
neighborhoodX = neighborhoodBox.getValue() ? "Neighborhood covenants" : ""
}
if (renovationsBox.selected) {
renovationsX = renovationsBox.getValue() ? "" : "Renovations/additions"
} else {
renovationsX = renovationsBox.getValue() ? "Renovations/additions" : ""
}
if (annualsBox.selected) {
annualsX = annualsBox.getValue() ? "" : "Annuals/perennials/bulbs"
} else {
annualsX = annualsBox.getValue() ? "Annuals/perennials/bulbs" : ""
}
if (patiosBox.selected) {
patiosX = patiosBox.getValue() ? "" : "Patios"
} else {
patiosX = patiosBox.getValue() ? "Patios" : ""
}
if (decksBox.selected) {
decksX = decksBox.getValue() ? "" : "Decks"
} else {
decksX = decksBox.getValue() ? "Decks" : ""
}
if (retainingBox.selected) {
retainingX = retainingBox.getValue() ? "" : "Retaining walls"
} else {
retainingX = retainingBox.getValue() ? "Retaining walls" : ""
}
if (walkwaysBox.selected) {
walkwaysX = walkwaysBox.getValue() ? "" : "Walkways/stairs"
} else {
walkwaysX = walkwaysBox.getValue() ? "Walkways/stairs" : ""
}
if (drivewaysBox.selected) {
drivewaysX = drivewaysBox.getValue() ? "" : "Driveways"
} else {
drivewaysX = drivewaysBox.getValue() ? "Driveways" : ""
}
if (waterscapesBox.selected) {
waterscapesX = waterscapesBox.getValue() ? "" : "Waterscapes"
} else {
waterscapesX = waterscapesBox.getValue() ? "Waterscapes" : ""
}
if (lightingBox.selected) {
lightingX = lightingBox.getValue() ? "" : "Lighting"
} else {
lightingX = lightingBox.getValue() ? "Lighting" : ""
}
if (gardenBox.selected) {
gardenX = gardenBox.getValue() ? "" : "Garden structures"
} else {
gardenX = gardenBox.getValue() ? "Garden structures" : ""
}
if (landscapeartBox.selected) {
landscapeartX = landscapeartBox.getValue() ? "" : "Landscape art"
} else {
landscapeartX = landscapeartBox.getValue() ? "Landscape art" : ""
}
if (fencesBox.selected) {
fencesX = fencesBox.getValue() ? "" : "Fences"
} else {
fencesX = fencesBox.getValue() ? "Fences" : ""
}
if (outdoorBox.selected) {
outdoorX = outdoorBox.getValue() ? "" : "Outdoor kitchen"
} else {
outdoorX = outdoorBox.getValue() ? "Outdoor kitchen" : ""
}
if (playBox.selected) {
playX = playBox.getValue() ? "" : "Play areas"
} else {
playX = playBox.getValue() ? "Play areas" : ""
}
landscapeBox.addEventListener ("click", myCheckboxListener);
irrigationBox.addEventListener ("click", myCheckboxListener);
drainageBox.addEventListener ("click", myCheckboxListener);
maintenanceBox.addEventListener ("click", myCheckboxListener);
plotplanBox.addEventListener ("click", myCheckboxListener);
neighborhoodBox.addEventListener ("click", myCheckboxListener);
renovationsBox.addEventListener ("click", myCheckboxListener);
annualsBox.addEventListener ("click", myCheckboxListener);
patiosBox.addEventListener ("click", myCheckboxListener);
decksBox.addEventListener ("click", myCheckboxListener);
retainingBox.addEventListener ("click", myCheckboxListener);
walkwaysBox.addEventListener ("click", myCheckboxListener);
drivewaysBox.addEventListener ("click", myCheckboxListener);
waterscapesBox.addEventListener ("click", myCheckboxListener);
lightingBox.addEventListener ("click", myCheckboxListener);
gardenBox.addEventListener ("click", myCheckboxListener);
landscapeartBox.addEventListener ("click", myCheckboxListener);
fencesBox.addEventListener ("click", myCheckboxListener);
outdoorBox.addEventListener ("click", myCheckboxListener);
playBox.addEventListener ("click", myCheckboxListener);
//
// and focus on variable name
//
Selection.setFocus("name");
//
// validate email function
//
function validate(address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".") ) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
//form check
//
function formcheck() {
if ((((email == null)) || (email.length<1)) || (email == "ERROR! Address not valid")) {
email = "ERROR! Address not valid";
action = "";
}
if (!validate(email)) {
email = "ERROR! Address not valid";
action = "";
}
if (name == "") {
_parent.name = "ERROR! Name required";
action = "";
name = "ERROR! Name required";
}
if ((validate(email)) && (email != "ERROR! Address not valid") && (name != "")) {
action = "send";
loadVariablesNum(mailform, 0, "POST");
gotoAndPlay("wait");
}
}
function reset() {
name = "";
aAddress = "";
cCity = "";
cCounty = "";
sState = "";
pPhone = "";
cPhone = "";
email = "";
rReferred = "";
landscapeBox.selected = false;
rRequest = "";
cComment = "";
}
stop();

and here is my PHP:

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<?

/************************************************** ****
**
** PHP Mailer
**
************************************************** *****/

// Enter your contact email address here
$adminaddress = "dewey@barakabaraka.com";

/************************************************** *****

No need to change anything below ...

************************************************** *****/

// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
mail("$adminaddress","Customer Request for information",
"Name: $name
Address: $aAddress
City: $cCity
County: $cCounty
State: $sState
Phone: $pPhone
Cell Phone: $cPhone
Email: $email
Referred by: $rReferred

$name wants to integrate their living space with interior:
------------------------------
$iInformation


$name budget is:
------------------------------
$bBudget


$name has other information he/she would like to share:
------------------------------
$sShare


$name is interested in the following services:
------------------------------
$landscapeX
$irrigationX
$drainageX
$maintenanceX
$plotplanX
$neighborhoodX



$name goals and needs are:
------------------------------
$renovationsX
$annualsX
$patiosX
$decksX
$retainingX
$walkwaysX
$drivewaysX
$waterscapesX
$lightingX
$gardenX
$landscapeartX
$fencesX
$outdoorX
$playX

","FROM:$email");

endif;

?>

[CS3] Online Form NOT WORKING
Thank you for your interest!

My problem is getting my online form that I am creating functioning correctly. The form I am making has input text and check boxes. When the user sends the information, my actionscript calls up my PHP script, which redirects to email.

If you have knowledge on creating online forms please download and take a look at the attachments provided at this website.

www.barakabaraka.com/help

Thanks!

[F8] Mail Form Not Working :(
Hi,

It seems i´m not able to make this website mail form work

www.realidanha.com -> contactos (mail form in question)

the submit button source code is:

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



on (release) {
for (i=1; i<_parent.fields_descriptions.length; i++) {
if (_parent[_parent.fields_descriptions[i][1]]!=_parent.fields_descriptions[i][2]) {
this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];
}
_parent.reset_txt(_parent["t"+i], _parent.fields_descriptions[i][1], _parent.fields_descriptions[i][2]);
}

this.recipient=_parent.rec;
//i=undefined;
getURL("contact."+_parent.serv, "_blank", "POST");

}

and the contact.php source code is:

<?
Error_Reporting(E_ALL & ~E_NOTICE);

while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}



reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."
";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

$message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
}
next($post_vars);
}

mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");

?>
<script>
resizeTo(300, 300);
</script>


can someone please help me out with this?

thx in advance

Form From Tutorial Not Working
Hello, I followed the tutorial on creating a form in Flash using PHP.

I don't know much about PHP, but I found the tutorial easy to follow, except that it doesn't work.

Can someone help me figure out why. I'm just trying to get a contact page to send an email to myself.

Using Flash MX 2004, I built a contact page that has a few more fields than the one in the tutorial, so I gave my fields all unique variable names and included them in the php script. I also changed the variable name "message" to ComQuest, for both the field and the action script.

My PHP script looks like this:

<?php
mail("myemail@gmail.com", $_GET["name"],$_GET["from"], $_GET["phone"], $_GET["city"], $_GET["date_of_interest"],$_GET["how_hear"],$_GET["ComQuest"], "From: PHPMailer
Reply-To: $_GET["from"]
X-Mailer: PHP/" . phpversion());
?>

The file is saved as "mail.php3"

both the php file and the page contact.swf are in my "flash" folder on the server.

The action script on my "submit" button looks like this:

on (release) {

lineAdapt();
loadVariablesNum("flash/mail.php3", 0, "POST");
gotoAndStop(2);
}

When I load it onto the remote server my form looks great, but when I hit my "submit" button, nothing happens. I recieve no email.

What am I doing wrong?

Contact Form Not Working - Again
Hello everyone.

I few months back I had asked a question pertaining to a contact form I got form the tutorials here.

I FINALLY got it to work,with different code, one time, now again, I am stuck in the position of it not working...well kind of.

I got it to work when I use this PHP code:

<?
$to = "digiboh@yahoo.com";
$msg = "$name

";
$msg .= "$message

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

?>
However, when it comes through the e-mail, it comes through like this:

Sender information (from): PHPMailer@ linhost274.prod.mesa1.secureserver.net
Subject: _level1.instance37.subject

The "TO" come through properly
Message: _level1.instance37.message

Does anyone know what this means?

If I use this PHP Script:
<?php

mail("digiboh@yahoo.com", $subject, $message, "From: PHPMailer
Reply-To: $from
X-Mailer: PHP/" . phpversion());

?>

Nothing even comes through. Attached is the .FLA file, which I believe all the action scripting is correct as well as my php and INI file off the server.

I really need some help getting this working. I litteraly have been running around in circles trying to figure out this thing. If some one could not only help, but fix it. I would REALLY appreciate it! Also, if everything is right on my end. Then could it be that there is something wrong with the hosting settings?

Contact Form Not Working =/
Right, i was following this tutorial (http://tutorials.flashvacuum.com/ind...?show=Email101) and i couldnt get it to work.

So i downloaded the source file from it, changed the email address and it still doesnt work...

What am i doing wrong?

Flash/php Form Not Working
Hi, this is another problem with flash - php form. The problem is that the flash is comunicating with the php but for some reason I am receiving an email empty - without any information put on the inout text.

I have already search all around and tried all i have could but it still doesn´t work.

here is the code i am using in the first frame

ActionScript Code:
function enviar() {
    enviar = new LoadVars();
    enviar.email = email;
    enviar.comments = comments;
    enviar.onLoad = function(success) {
        gotoAndStop("send");
    };
    enviar.sendAndLoad("http://www.comodynes.es/php/mail.php", enviar, "POST");
}


then in the "send" button:

ActionScript Code:
on (release) {
    if (comments ne "" and email ne "") {
        e = "0";
        snabelatjek = 0;
        while (Number(e)<=Number(length(email))) {
            if (substring(email, e, 1) eq "@") {
                snabelatjek = 1;
            }
            e = Number(e)+1;
        }
        if (Number(snabelatjek) == 0) {
            gotoAndStop("error");
        } else {
            e = "";
            snabelatjek = "";
            gotoAndStop("sending");
            enviar();
        }
    } else {
        gotoAndStop("error");
    }
}


and the php:

PHP Code:



<?php
$MailTo="email@domain.com";
$dia=date("m.d.Y");
$hora=date("H:i:s");
$contenido="
Email desde www.comodynes.es.
El Mensaje se Envio el  $dia a las $hora:

----------------------------------------------------------------------------
E-mail: $email
Mensage: $comments

----------------------------------------------------------------------------
";
$cabecera ="From: $email 
";
mail($MailTo, $subject, $contenido, $cabecera);
?>





so what is wrong???? please help....
btw, if you want to see more www.comodynes.es
thanks

Flash Form Not Working
I am desperately trying to get a Flash form to function. It seems that all the AS is correct and it should work, but it is not. When uploaded to the server, I am getting a "Forbidden" error message. The host cannot figure out why. They say it may be the actionscript, but it looks like it is correct. Can someone please take a peek?

http://www.creirealestate.com/form2.html
http://www.creirealestate.com/form2.zip - fla file

Here is the main actionscript on the timeline...

ActionScript Code:
stop();

function sendForm () {
    my_luv = new LoadVars ();
    my_luv.name = _parent.name_txt.text;
    my_luv.email = _parent.email_txt.text;
    my_luv.message = _parent.message_txt.text;
    my_luv.email_id = "pixxels@comcast.net";
    my_luv.subject = "CREI Website Inquiry";
    my_luv.send ("http://www.fatcow.com/scripts/formemail.bml", "POST");
    nextFrame();
}

submit.onRelease = function () {
  if (name_txt.text == "" || email_txt.text == "" || message_txt.text == "") {
        status_txt.text = "Please complete the entire form ...";
  } else {
      status_txt.text = "";
      sendForm ();
    }
}


Here is what my host needs to process a form in HTML:
<form method=”post” action=http://www.fatcow.com/scripts/formemail.bml>
<input type=”hidden” name=”my_email” value=”pixxels@comcast.net”>
<input type=”text” name=”name”>
<input type=”text” name=”email”>
<input type=”text” name=”message”>
<input type=”hidden” name=”subject” value=”CREI Website Inquiry”>

This is working in HTML - sample here...http://www.creirealestate.com/form.html

The host's instructions were initially to use hidden variable name="my_email", then they suggested using name="email_id". Neither work in the Flash file.

And yes, I am trying to utilize the host's CGI email form script - only way I can do it right now. And I need to use this type of form for 3 websites, not just one, so I am really hoping someone knows if I am doing something wrong.

Thank you for looking!!

Flash Form Isn't Working
Basically i have a flash site and the contacts form isn't in the main scene, its in a movie clip. However i have entered the action script code in properly but for some reason the send and reset buttons dont seem to have any effect on the form, its like that there are no actions taking place. I have checked all of the variables and names and they are all correct.

Need Working Form Application Example
I give up. I can not find a simple working multi-page form example on the web. Every example I find is one page or doesn't navigate the screens. I need to do a non-linear multi-page form, and I'm new to flash. Is a form application not the recommended way to do this? I can do everything else I need to do but I just need a simple three page example.

Thanks,

Todd

Email Form Using PHP Not Working
can ne one help??

I followed the Flash-Based Email Form Using PHP tutorial, here's da link http://www.kirupa.com/developer/acti..._php_email.htm when i used this for my site, i've changed the e-mail address to mine in the php file, and then when i test it on my site, fill in all the details, click send. But when i check my e-mail there's nothing there...

Why is that? why dont it work?? Can ne one help on this.

Thanks!!!

HELP Email FORM Not Working
I downloaded Kirupa's PHP Email form and changed the colors to my liking. When it runs as a standalone swf file (from an html file), it works! See it here:

http://steadyscene.com/form/phpemail.html


However, when I try to implement the form into my navigation links, the form does not work. Nothing happens when the SEND button is clicked.

Here is how I implemented it into my .fla file:


- Modified the colors in Kirupas .fla
- copied all the layers / frames and content from kirupas .fla library and pasted them into a new movie called phpform in my library
- created a button called CONTACT, added this actionscript (which works for all my other buttons and navigation):

on (press) {
this.attachMovie("phpform", "window", 0);
window._x = 0;
window._y = -15;
}

- Highlighted the phpform movie clip in the Library, selected Linkage and set the identifier to phpform (which is required for attach movie actionscript to work)

As you can see here: www.steadyscene.com (click on contact)
It loads the phpform movie with no problems.

Why isnt the send button working? All the actionscript is the same as the original file. Is it a _root or Level issue?

In Kirupas file there are just three layers that holds the content. In my implementation I created a movie then pasted his layers inside phpform.

Any help is appreciated!

SteadyScene

XLM Loaded SWF/PHP Form Not Working
Hello everyone,

Thank you for reading.

I am using XML to load an external SWF that has a form using PHP. (Tutorial from Kirupa.com, also using XML box resize tutorial to load from with XML) The form works, as far as sending the email correcly, but it does not goto the next frame that says "Thank you!" with back button, so it may be confusing to the user if it doesn't do anything when the click send.

On the form it has this actionscript attached:

onClipEvent(data){
// show welcome screen
_root.nextFrame();
}

Was wondering if anyone knew a way around this, please let me know, any help is always greatly appreciated. Thanks!

Contact Form Not Working - Of Course
My contact form isnt working like everyone elses, I know my site supports php so thats not a problem. Im sure it has something to do with my code, but I dont know what, you tell me

I have a "name", "email", and "message" input text fields with the same variable names.
I also have a "send" button which contains this code:

Code:
on (release) {
loadVariables("mail.php", 0, "POST");
}
My php script looks like this:


Code:
<?php
$to = "oyvind@medieklassen.com";
$subject = "Website reply";


$headers = "From: " . $_POST["email"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];

$message .= "This message has been sent from your Contact Form

";
$message .= "Name: " . $_POST["name"] . "
";
$message .= "Email: " . $_POST["email"] . "
";
$message .= "Message: " . $_POST["message"] . "
";

mail($to, $subject, $message, $headers);
?>
Please help me out

-peace

Email/PHP Form Not Working
I am trying to make an e-mail form that is integrated into Flash. To do this, I have been using the tutorial on this site at: http://www.kirupa.com/developer/act...h_php_email.htm and have followed it pretty much to the t. However, when I test the form out at http://www.terrieades.com/in_progress/pda/largered.html (click on "Mail"), it never alerts me that the form has been sent, which I have set it up to do. Since I followed the directions so closely, I'm not sure if this is a problem with the AS, or the PHP file.

Here are both:

http://www.terrieades.com/in_progress/pda/Flash Presentations/pda_largered.zip (FLA file)

PHP Code:



<?php$sendTo = " . $_POST["to"] . ";$subject = "E-mail from Future PDA";$headers = "From: Future PDA Demo";$headers .= "pda_demo@terrieades.com";$headers .= "Reply-To: pda_demo@terrieades.com";$headers .= "Return-Path: pda_demo@terrieades.com"];$message = $_POST["message"];mail($sendTo, $subject, $message, $headers);?>




Thanks for any help, and thanks for the great tutorial! (I have actually gotten it to work on another site before, which is why I wanted to come back to it.)

Flash Form Not Working
Hello guys, I have a flash form that I did not create it but is not working either, the original flash form works, but I added several more fields and several ComboBoxes and does not work. Here is the php file:

PHP Code:



<?php /////////////////////////////////////////////////////////////////////////////////// Build the message in HTML - Remember to escape the necessary // Message to User$message = "<html>"; $message .= " <HEAD> <link rel="stylesheet" type="text/css" href="http://www.zajacfirm.com/css/myStyles.css"> </HEAD> <BODY>";$message .= "<br><br>";$message .= "<p class="emailtext">Thank you for your submission.  This information has just been sent to the email addresses of Eric Zajac, his paralegal, and to his legal assistant.  Please call the office (toll free 888 575 7615) to confirm your submission.  You may also call Eric's cell phone, 215 519 8883.  The prospective client will be reached as soon as possible, and we will report back to you promptly.</p>";$message .= "<a href="http://www.zajacfirm.com" target="_blank"><img src="http://www.zajacfirm.com/images/zajac_logo.jpg" alt="ZajacFirm.com" width="225" height="59" border="0"></a>";$message .= "<div class="emailcontactinfo">1818 Market St., 30th Flr.<br>Philadelphia, PA 19103<br>Telephone: (215) 575-7614<br>Facsimile: (215) 575-7640<br><a class="emaillink" href="http://www.zajacfirm.com">http://www.zajacfirm.com</a></div><br><br>"; $message .= "</body></html>";///////////////////////////////////////////////////////// Message to Client$content = "<html>";$content .= " <HEAD> <link rel="stylesheet" type="text/css" href="http://www.zajacfirm.com/css/myStyles.css"> </HEAD> <BODY>";$content .= "<br><br>";$content .= "<p class="emailTitleName">The Zajac & Arias Law Firm</p>";$content .= "<hr>";$content .= "<p class="emailtext"><strong>Claimant Contact Information:</strong></p>";$content .= "<p class="emailtext"><strong>Name:</strong> $name</p>";$content .= "<p class="emailtext"><strong>Cell:</strong> $cell</p>";$content .= "<p class="emailtext"><strong>Home Phone:</strong> $home2</p>";$content .= "<p class="emailtext"><strong>Home Address:</strong> $address</p>";$content .= "<p class="emailtext"><strong>City:</strong> $city</p>";$content .= "<p class="emailtext"><strong>State:</strong> $state2</p>";$content .= "<p class="emailtext"><strong>Zip Code:</strong> $zip</p>";$content .= "<hr>";$content .= "<p class="emailtext"><strong>Claimant Incident Information:</strong></p>";$content .= "<p class="emailtext"><strong>Currently represented:</strong> $represented</p>";$content .= "<p class="emailtext"><strong>Type of Case:</strong> $pulldown</p>";$content .= "<p class="emailtext"><strong>Date:</strong> $date2</p>";$content .= "<p class="emailtext"><strong>Time:</strong> $time2</p>";$content .= "<p class="emailtext"><strong>Location:</strong> $location2</p>";$content .= "<p class="emailtext"><strong>Discription of Incident:</strong> $incident</p>";$content .= "<p class="emailtext"><strong>Additional Comments:</strong> $comments2</p>";$content .= "<p class="emailtext"><strong>Medical Records:</strong> $medical</p>";$content .= "<p class="emailtext"><strong>Police Report:</strong> $police</p>";$content .= "<p class="emailtext"><strong>Uninsured Motorist Insurance:</strong> $motorista</p>";$content .= "<p class="emailtext"><strong>Emergency Room:</strong> $emergency</p>";$content .= "<p class="emailtext"><strong>Ambulance:</strong> $ambulance</p>";$content .= "<p class="emailtext"><strong>Source:</strong> $source2</p>";$content .= "<hr>";////////////////////////////////////////////////////////////////////////////////////$response = "check";$m_blank = false;// I checked the required fields in PHP because it has some nice features like eregi more info: www.php.netif ( $length = strlen($comments2)<1 and $m_blank == false ){   $response = 'Additional Comments required';   $m_blank = true;}if ($response == "check") { $response = "Thanks"; // thus the flash movie advances to the thank you screen error_reporting(E_ALL); include('email/htmlMimeMail.php');  $mail = new htmlMimeMail();  $text = $mail->getFile('email/example.txt'); $mail->setHtml($message, $text, './');  $mail->setFrom('The Zajac Law Firm <eric@zajacfirm.com>'); $mail->setSubject('Legal Inquiry');  $result = $mail->send(array($email)); ///////////////////////////////////////////////////////////////// $mail = new htmlMimeMail();  $text = $mail->getFile('email/example.txt'); $mail->setHtml($content, $text, './');  $mail->setFrom('The Zajac Law Firm <eric@zajacfirm.com>'); $mail->setSubject('The Zajac Law Firm Contact Us Information');  $result = $mail->send(array($email, $email2));}echo ("&results=$response"); // send feedback to the flash movie?>




and here is the Flash fla:

http://www.john-designs.com/form_component.zip

I can't find the error that I have with this form, please help me out guys, I will appreciate it.

Email Form Using PHP Not Working
can ne one help??

I followed the Flash-Based Email Form Using PHP tutorial, here's da link http://www.kirupa.com/developer/acti..._php_email.htm when i used this for my site, i've changed the e-mail address to mine in the php file, and then when i test it on my site, fill in all the details, click send. But when i check my e-mail there's nothing there...

Why is that? why dont it work?? Can ne one help on this.

Thanks!!!

HELP Email FORM Not Working
I downloaded Kirupa's PHP Email form and changed the colors to my liking. When it runs as a standalone swf file (from an html file), it works! See it here:

http://steadyscene.com/form/phpemail.html


However, when I try to implement the form into my navigation links, the form does not work. Nothing happens when the SEND button is clicked.

Here is how I implemented it into my .fla file:


- Modified the colors in Kirupas .fla
- copied all the layers / frames and content from kirupas .fla library and pasted them into a new movie called phpform in my library
- created a button called CONTACT, added this actionscript (which works for all my other buttons and navigation):

on (press) {
this.attachMovie("phpform", "window", 0);
window._x = 0;
window._y = -15;
}

- Highlighted the phpform movie clip in the Library, selected Linkage and set the identifier to phpform (which is required for attach movie actionscript to work)

As you can see here: www.steadyscene.com (click on contact)
It loads the phpform movie with no problems.

Why isnt the send button working? All the actionscript is the same as the original file. Is it a _root or Level issue?

In Kirupas file there are just three layers that holds the content. In my implementation I created a movie then pasted his layers inside phpform.

Any help is appreciated!

SteadyScene

Email Form Not Working
I cannot figure out why this flash email form is not working properly. I am pretty sure I have the reset and send buttons coded right, but they do not work. Could someone who knows more about this than me take a look at the attachment and see where I have gone wrong?

Email/PHP Form Not Working
I am trying to make an e-mail form that is integrated into Flash. To do this, I found this tutorial: http://www.kirupa.com/developer/act...h_php_email.htm And have followed it pretty much to the t. However, when I test the form out at http://www.terrieades.com/in_progress/pda/largered.html (click on "Mail"), it never alerts me that the form has been sent, which I have set it up to do. Since I followed the directions so closely, I'm not sure if this is a problem with the AS, or the PHP file.

Here are both:

http://www.terrieades.com/in_progress/pda/Flash Presentations/pda_largered.zip (FLA file)

PHP Code:

<?php$sendTo = " . $_POST["to"] . ";$subject = "E-mail from Future PDA";$headers = "From: Future PDA Demo";$headers .= "pda_demo@terrieades.com";$headers .= "Reply-To: pda_demo@terrieades.com";$headers .= "Return-Path: pda_demo@terrieades.com"];$message = $_POST["message"];mail($sendTo, $subject, $message, $headers);?>


Thanks for any help!

Simple Form Not Working
intended outcome
the user enters their username and their quote, then press the go button. movie goes to next frame and database is updated.

current situation
the database is not updated and the movie dont go to next frame, anyone know why??

this my actionscript:

function qsending() {

qsendvar = new LoadVars();
qsendvar.newuser = _root.newuser.text;
qsendvar.newquote = _root.newquote.text;
nextFrame();    
qsendvar.sendAndLoad("http://k.1asphost.com/Forum66/quote.asp", qsendvar, "POST");
}
_root.go_btn.onRelease = qsending;


and this is the asp file
[b]<%   
 strUser = Request.form("newuser")
 strQuote = Request.form("newquote")
 
 MyPath=Server.MapPath("database.mdb")
 Set conn = Server.CreateObject("ADODB.Connection")
 conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _
 "DBQ=" & MyPath

strSql = "UPDATE users Set quote ='" & strQuote & "' WHERE username='" & strUser & "'"
conn.Execute (strSql)

conn.close
set conn = nothing

 %>[b]

Form Redirect Not Working
Hi all,
Im using Flash to send form data to FormMail.pl. Here are the variables Ive used..

redirect = "http://www.myurl.com/formsent.htm";
recipient = "me@myurl.com";
subject = "Message from website";

Everything is working fine except that the page doesn't redirect.
I know the FormMail.pl is working as I have set up an html form and it redirects correctly. Any ideas why the Flash form isn't working?
Thanks!

Email Form Not Working.
I downloaded Kirupa's PHP Email form and changed the colors to my liking. When it runs as a standalone swf file (from an html file), it works! See it here:

http://steadyscene.com/form/phpemail.html


However, when I try to implement the form into my navigation links, the form does not work. Nothing happens when the SEND button is clicked.

Here is how I implemented it into my .fla file:


- Modified the colors in Kirupas .fla
- copied all the layers / frames and content from kirupas .fla library and pasted them into a new movie called phpform in my library
- created a button called CONTACT, added this actionscript (which works for all my other buttons and navigation):

on (press) {
this.attachMovie("phpform", "window", 0);
window._x = 0;
window._y = -15;
}

- Highlighted the phpform movie clip in the Library, selected Linkage and set the identifier to phpform (which is required for attach movie actionscript to work)

As you can see here: www.steadyscene.com (click on contact)
It loads the phpform movie with no problems.

Why isnt the send button working? All the actionscript is the same as the original file. Is it a _root or Level issue?

In Kirupas file there are just three layers that holds the content. In my implementation I created a movie then pasted his layers inside phpform.

Any help is appreciated!

SteadyScene



Tabbing Through Form Not Working
All of a sudden my tabbing though form fields has stopped functioning completely.

This seems to have coincided with me using a combox box component - but I'm not sure. The tabbing does work when the file is loaded directly into the browser, but when it is loaded by anothr clip (as planned) it fails.

Desperate for some advice....

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