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




AS3 + PHP Contact Form Issue



I am having issues with the contact form I am trying to create. I've looked at a bunch of other forum posts and the adobe livedocs and I am still having trouble.I my Flash form is having trouble getting the correct response back from my PHP script, so I can tell my user whether the email was successfully sent or not. I am echoing back echo "forFlash=passed"; or echo "forFlash=failed"; from my PHP script. I have a status_txt field that lets a user know whether he email was successfully sent or not. If I set the status_txt field to: evt.target.data.forFlash I don't get a response and if I just set it to: evt.target.data I get back this crazy string: %0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0 D%0AforFlash=passed. As you can see the forFlash=passed is at the end, but I don't know what all that other stuff is...any ideas?I've also tried urlencoding the forFlash=passed on the PHP end and then trying to decode it in Flash, but that returned nothing.Here is my AS3:Code: var variables:URLVariables = new URLVariables();var varSend:URLRequest = new URLRequest("email.php?&cachestop="+Math.random() );varSend.method = URLRequestMethod.POST;varSend.data = variables;var varLoader:URLLoader = new URLLoader;varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;varLoader.addEventListener(Event.COMPLETE, sendComplete);varLoader.addEventListener(IOErrorEvent.IO_ERROR, sendIOError);//function called from method, contains validation logic and var data to be sent to formfunction sendActions(event:MouseEvent):void {    variables.name_field = name_field.text;    variables.email_field = email_field.text;    variables.phone_field = phone_field.text;    variables.message_field = message_field.text;    varLoader.load(varSend);}function sendComplete(event:Event):void {    //status_txt.text = evt.target.data.forFlash;        status_txt.text = event.target.data;    //status_txt.text = varLoader.data;}function sendIOError(e:IOErrorEvent):void {    trace(e)} Code: <?php//Flash form post data$name_field = trim($_POST['name_field']);$email_field = trim($_POST['email_field']);$phone_field = trim($_POST['phone_field']);$message_field = trim(stripslashes($_POST['message_field']));$receiver = "myemail@domain.com";$sender = $email_field;$email_body = "Name: $name_field ";$email_body .= "Email: $email_field ";$email_body .= "Phone: $phone_field "    ;$email_body .= "Message: $message_field ";    $extra = "From: $receiver
" . "Reply-To: $sender
" . "X-Mailer: PHP/" . phpversion();if( mail( $receiver, "Contact Form", $email_body, $extra ) ) {    echo "forFlash=passed";} else    {    echo "forFlash=failed";}?> Thanks for any help that can point in the direction of figuring this out.



Actionscript 3.0
Posted on: Thu Nov 13, 2008 11:44 pm


View Complete Forum Thread with Replies

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

Contact Form Issue
hey again

as you know i am currently building a full flash website which has now been uploaded to:
http://www.jacobian.809m.com/Session/NP/

This was a Template Monster template that the photographer bought and asked me to edit for him so i do not really know alot about it...
(hence all the questions)

but this is hopefully my last question about it...

if you go to the contact us page, there was a contact form included with the site. but i have no idea how to get it to work.
so that when people type their details and comments then press "send" it sends it to the required email address...

all you are given when purchasing the template is the fla and some psds...
but dont contact forms need more files?
im not sure.. i have looked around for tutorials on how to make my own but have not been able to integrate them into this template to make the form work...
(im not very good with actionscript)

hope you understand what i am asking..
and if you need them, the source files can be found here:
http://www.mediafire.com/?0x5mmm90x9n

again thank you.
Kind Regards,
Jacobian

Contact Form Issue With AS3 And Php
so i'm trying to make a Contact form that would be sent thorugh email from a web page... but something just doesn't work... i think the code, both PHP and AS3 is correct but i wanna double check it out with you ppl... so here is the code:

PHP:

Code:
<?php
/*
--- Created By Adam @ www.developphp.com ---
--- For help or script expansion join our forums there ---
--- Use this code as your own any way you like ---
*/
// Create local PHP variables from the info the user gave in the Flash form
$senderName = $_POST['userName'];
$senderEmail = $_POST['userEmail'];
$senderMessage = $_POST['userMsg'];

// Strip slashes on the Local variables
$senderName = stripslashes($senderName);
$senderEmail = stripslashes($senderEmail);
$senderMessage = stripslashes($senderMessage);


//!!!!!!!!!!!!!!!!!!!!!!!!! change this to your email !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
$to = "dpcdpc11@gmail.com";

$from = "contact@mytestingsite.atwebpages.com";
$subject = $_POST["subject"];
//Begin HTML Email Message
$message = <<<EOF
<html>
<body bgcolor="#FFFFFF">
<b>Name</b> = $senderName<br /><br />
<b>Email</b> = <a href="mailto:$senderEmail">$senderEmail</a><br /><br />
<b>Message</b> = $senderMessage<br />
</body>
</html>
EOF;
//end of message
$headers = "From: $from
";
$headers .= "Content-type: text/html
";
$to = "$to";

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

exit();
?>
AS3:

Code:
stop();

import flash.events.*;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
// ----------------------------------------------------------------
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("email.php");
var varLoader:URLLoader = new URLLoader;
varSend.method = URLRequestMethod.POST;
varSend.data = variables;

status_txt.text = "";

submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);


function ValidateAndSend(event:MouseEvent):void{

//validate form fields
if(!name_txt.length) {
status_txt.text = "Please enter your name.";
} else if(!email_txt.length) {
status_txt.text = "Please enter an email address";
} else if(!validateEmail(email_txt.text)) {
status_txt.text = "Please enter a VALID email address";
} else if(!msg_txt.length) {
status_txt.text = "Please enter a message.";
} else {

status_txt.text = "Thanks " + name_txt.text + ", your message has been sent!";

variables.userName = name_txt.text;
variables.userEmail = email_txt.text;
variables.userMsg = msg_txt.text;
variables.subject = subject_txt.text;
varLoader.load(varSend);

gotoAndStop(2);

}
}

function validateEmail(str:String):Boolean {
var pattern:RegExp = /(w|[_.-])+@((w|-)+.)+w{2,4}+/;
var result:Object = pattern.exec(str);
if(result == null) {
return false;
}
return true;
}
and here is the link to the contact form on the server: http://mytestingsite.atwebpages.com/

is the code correct or it might be the free server that i'm using??

hope some could really help me on this one!

thanks in advanced!!

As3 Contact Form Issue, Php Or A Cgi-bin/*.pl ?
Hi every one... Thank you all for a very nice forum. A big thumbs up to every one
who takes the time to help someone in need!.

My problem is probably a beginners problem. I am struggling with
making a contact form for my site. Trying to learn AS3 I find it
difficult to convert Lees tutorial from as2 to as3.

My problems doesn’t stop there, I can’t use a *.pl script because
the server doesn’t support it (windows). I have been trying to get the .php
version to work. But I keep messing it up.
Could someone please either point me to a good tutorial
for mail forms with as3 or look at my code and tell me what
I am doing wrong. My site is built with frames that I navigate between.
The mail form is located in a part called contact and in a movie clip called
contact_mc.

PHP
Code:

<?PHP
$theName = $_POST['theName'];
$theEmail = $_POST['theEmail'];
$theMessage = $_POST['theMessage'];

$to = "martinsgolf@telia.com";
$subject = "Flash contact form";
$message = "Name: " . $theName;
$message .= "
Email: " . $theEmail;
$message .= "

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

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

?>



Flash- i get this error twice = "type was not found or was no a compile-time constant: LoadVars"
and "call to a possibly undefined method Load Vars"


Code:

stop();

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

sender.onRelease = function()  {
   senderLoad.theName = theName.text;
   senderLoad.theEmail = theEmail.text;
   senderLoad.theMessage = theMessage.text;
   senderLoad.sendAndLoad("http://www.martingunnarsson.se/flashtest/send.php",receiveLoad, "POST");

}





This is my second post in as many days, I hope
you guys don’t get tired of a beginner like me.

Any help would be appriciated .. Maritn

AS2 External Contact Form Issue {HELP}
hi guys,
I have a problem that involves an external swf and a contact form, Ive searched goole and couldnt find a solution, so here goes.
Basically the contact form works fine on its own - send the data etc. However when the form is loaded into an external swf none of the form works. It loads in fine, can see everything apart from the label fields which name the fields: name, email, company etc. I havent got a clue what to do. Any help will be greatly appreciated and will as always bring serious kudos.

regards

Flash Contact Form/PERL Communication Issue
Hey all,

I have picked up working on a site from a previous designer that I would like some insight into an error that I'm running into. There is a contact form that was created in the .swf file that has four text fields and a whole slew of check boxes that need to get emailed to a mailbox upon completion of the form. Here is the code for the 'Submit' button:


Code:
on (release) {
this.hearAr = new Array();
if(referral1.getState())
this.hearAr.push("individual");
if(referral2.getState())
this.hearAr.push("couple");
if(referral3.getState())
this.hearAr.push("family");
if(referral4.getState())
this.hearAr.push("corporation");
if(referral5.getState())
this.hearAr.push("advisor yes");
if(referral6.getState())
this.hearAr.push("advisor no");
if(referral7.getState())
this.hearAr.push("taxable");
if(referral8.getState())
this.hearAr.push("tax free");
if(referral9.getState())
this.hearAr.push("both assets");
if(referral10.getState())
this.hearAr.push("insured");
if(referral11.getState())
this.hearAr.push("underinsured");
if(referral12.getState())
this.hearAr.push("not sure insured");
if(referral13.getState())
this.hearAr.push("accountant");
if(referral14.getState())
this.hearAr.push("consultants");
if(referral15.getState())
this.hearAr.push("trust and estate attorney");
if(referral16.getState())
this.hearAr.push("other attorney");
if(referral17.getState())
this.hearAr.push("insurance planner");
if(referral18.getState())
this.hearAr.push("other financial advisor");
if(hearAr.length > 0)
this.hear = hearAr.join(", ");
//this.loadVariables("http://www.website.com/cgi-bin/sendmail.cgi", "POST");
this.to = "contact@website.com";
delete hearAr;
delete areasOfInterestAr;
delete message;
delete startY;
this.loadVariables("http://www.website.com/cgi-bin/sendmail.cgi", "POST");
this._parent.play();
}
This should send the data to the sendmail.cgi script that is running in the cgi-bin folder on the server, which should parse the information and send it on to the specified email address, no? I can provide the sendmail script if anyone needs to take a look at it. Just wanted to see if I'm missing somethine blatantly obvious. Thanks for your help.

Devans

Contact Form
i have a form with variables name, street etc. on the send button i have the following action...
--------------------------
on (release) {
if (name ne "" and street ne "" and zip ne "" and town ne "" and email_from ne "") {
email_to = "whoever@whatever.com";
email_subject = "form contact";
loadVariablesNum ("http://www.whatever.com/flashmail.php", 2, "POST");
gotoAndPlay ("success");
} else {
gotoAndPlay ("failure");
}
}
--------------------------
2 problems...
1. netscape always goes to failure.
2. the arrived mail does not contain all variables, and yes, i checked the spelling.

any ideas? greatly appreciated!

Contact Form
I have been working on this contact form for several hours, and it does not work, could someone please take a look at it and see if they can find what is wrong with it.
Thanks

http://www.geocities.com/norefunds3/contact.fla

Contact Form
hello anyone can tell me how to do a full contact form in FLASH.. that send the info to my email

Contact Form
ALright, I'm having some trouble getting my contact form to work. I found an example of one that works with php.. so I upload this and get it working on my site... But now, I want to implement my own version of a contact form into my flash movie.. heres the code I used to do that:

on (release) {
if (name eq "" or name eq "enter.name"){
name="enter.name";
}
if (email eq "" or email eq "enter.email") {
email = "enter.email";

}

if (subject eq "" or subject eq "enter.subject"){
subject = "enter.subject";

}
if (message eq "" or message eq "enter.comment"){
message = "enter.comment";

}else{

loadVariablesNum ("form.php", 0, "POST");
_root.contact.gotoAndStop (70);
}
}


I got the load var. part from the form example that works and I used the exact name for the names of the input boxes... all the other if staments check to see if all the text boxes are filled in with something other than a default text.. Then , once all that passes it should load the variables to the php file and the php file will send me an e-mail based on that information.. I know its not the php file becuase I can get that to work on the real example... I just dont understand whats happening in my movie..



any ideas??


thanks,

Robert

Contact Form
how would i make a contact form that takes what is entered in an input text box and mails it to my email address?

-2

Contact Form With PHP
Hi...
I am trying to make a contact form in Flash, using a PHP script. I followed the tutorial on this site, but it is not working right. It is not sending the e-mail. Everything else works, such as the e-mail address validation, etc. There is a dynamic text field at the bottom of the .fla that states when the e-mail has been sent. I have attached the .fla file. The PHP script is copied below. If anyone can help with this, I would really appreciate it.
Thank you,
Kristine

<?
$ToEmail = "me@hotmail.com";

##$ToName = "Kristine";
$ToSubject = "Mail from Website";

$EmailBody = "Sent By: $firstName $lastName
Senders Email: $Email
Senders Company: $company

Message Sent:
$comments

Sender Heard About Company From: $hearAbout
";

$EmailFooter="
This message was sent by: $firstName $lastName from $REMOTE_ADDR .";

$Message = $EmailBody.$EmailFooter;

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


Print "Mail.EmailStatus=Your e-mail has been sent.
Please allow 24 hours for responses.";

?>

Help With A Contact Form Using Cgi
Hi i am trying to set up a form for contact within my flash site. I am just wondering if any one has a real easy cgi script for sending the input to my email adress and then send an auto response to the person. I have a cgi script i got from my server but there is no support to tell how to use it and I can't figure out variable names. Any way any help would be appreciated.
josh

MX Contact Form Using ASP
Having trouble.

Why am I such a retard?

What am I doing wrong.

My server's mail object is "CDONTS.NewMail"

Here's my .FLA, HTML, & the ASP zipped.

Thanks for any help

Contact Form Help
Hi. I'm making a website with a contact page to send me an email using flash and Perl cgi scripts. When i try to use it, it sits there forever saying that its sending the message, but i never get any email or anything. I am using this tutorial,
http://www.flashkit.com/tutorials/Dy...-658/index.php
and here is my scripts and flash file:
Click Here and Download mailform.zip

My website is fusion2002productions.netfirms.com.
Its currently totally screwed up, which is why i'm redoing it.

PHP Contact Form Help
I have just uploaded my site and now my contact form shows strange text when you goto it?

This is my site

click on the contact link to see what happens. Anyone that can help is a god!

cheers

studentmonster

Contact Form
can someone direct me to somewhere where i can find info about making a contact form so people viewing my website can contact me.

cheers

Contact Form. Help Me
Hey guys, I have recently made a flash contact form as part of my website and have got it up and working until the point where I need the variables passed to a PHP file.

To start with, Is there any way to turn the info the user has input into an email which is then sent to me all in Flash? If so this solves my PHP problem, but could you tell me how to do it?

If that is not possible Then I need to know how to simply send a number of variables to a PHP script. Bear in mind that I want the PHP script to act unseen (Ie. I don't want a window to pop-up). Please could you tell me how to do this?

Here is my file as it stands.

Thanks in advance guys.

Felix.

A Contact Me Form, Not Using Php
Hi all

I would like to use a contact me form with name, subject, message send, but cannot use php as my account won't allow it, any suggestion where i might be able to view something like this.

many thanks
tania fox

Contact Form Help
Alright I have a form sent using PHP that I am working on...

The contact form is loaded into an empty movie clip called "mtClipContent"

Now this contact form as three input text boxes, with variable names "FirstName" , "Email" , and "ToComments"

Anywho, thats sort of irrelevant, my problem is that the text wont be display complete after it sends, it just stays at Sending...

the script in the php is

Print "_root.mtClipContent.EmailStatus.status_text=Compl ete, thank you.";

i think it has something to do with the path...

Contact Form
Is there a way I can make a contact form in flash and have the info sent to a email account. I know this can be made in PHP. Is there a tutorial or site I can check out. Thanks!

Php Contact Form
I am using a general contact form in flash
the tutorial I used is located here
http://www.dmxzone.com/ShowDetail.asp?NewsId=756
I recieve the email but the variable are never show up, I only get a blank email. Everything but the variable are sent Can't seem to see what I am doing wrong can anyone help?

Php Contact Form Var Not Being Sent
I have used the tutorial listed here http://www.dmxzone.com/ShowDetail.asp?NewsId=756
I setup the php file and I recieve the Email and anything set in the php form but none of the variables from Flash are sent. I double check the spelling to make sure everything matched but I can't figure out why it won't work. Even if I use the source file provided the variable aren't sent (

Any help would be great!

Contact Form Help
Hi,

Can someone please have a look through the PHP contact form ive attached and tell me why its not working.

thanks alot

Some Help With A Contact Form?
please i have this form and want to add the script to call the php mailform.php and a script to the clear button?
can you please help me?
thank you a lot.

Contact Form
If anyone knows how to get this form to work for the CONTACT PAGE in www.fiesta2go.com/TEMP/main.htm I want it to send all the info to a certain E-mail once they click send and perhaps have everything organized in its own area inside the E-mail?

If anyone could help I would greatly appreciate it

Cgi Contact Form
hey all thanks for taing notice of this one,

im just ahving a problem wiht this script. i dont have an editor for cgi and therfore im not sure what else i ned to do. im sure my serve supports cgi but the form doesnt seem to work.
its lovated at www.webreasons.com/testers/frame1.html
on the contacts page. ive also included the source in the zip file attached. if anyone could help me wit this it would be greatly appreciated.


many thanks in advance

Llewop

Need Some Help With A Contact Form?
i have a contact form flash with php and when i try it with greek charachters the mail i recive is not readable???????
any help on this i have tryid different things
thnx a lot

Contact Form, How Do I?
Ok I know it's a common problem, but how do I use these
textinput components?

I have inserted 8 component textinput fields and a component button. How do I make the button send all the information to a specific e-mail adres?


If you want to help me I can send you my file

Contact Form
hey guys...i am making a contact form. It's super basic...name, email, comment, and a submit button. When the user clicks submit, it sends the info to a PHP script, which in return sends a receipt to tell Flash to play the thank you message. Ok, that works...but only when i test the project from the flash program. Online, the form does not submit (IOW: user clicks it, but nothing happens). Worse is that the information is also not sending. Why would this only work from the flash program, but not from the server online?
code:
function createListener() {
var oListener = new Object();
oListener.click = function(oEvent) {
lvEmail.toAddress = "me@website.com";
lvEmail.fromAddress = mcForm.txEmail.text;
lvEmail.subject = "visitor message";
lvEmail.message = mcForm.txComment.text;
lvEmail.sendAndLoad("http://www.website.com/sentmail.php", lvReceiver, "POST");
};
mcForm.mcSend.addEventListener("click", oListener);
}
createLoadVars();
var lvEmail=new LoadVars();
var lvReceiver=new LoadVars();
lvReceiver.onLoad=function(){
if(this.success==1){
hideForm();

}
}


createListener()

Help With Contact Form....
I have a contact form .fla that when I publish out a .swf and test it from my desktop it works fine. By that I mean that I receive the e-mail. When I place it inside of the HTML page and again test from my desktop it still works. But then when I upload to my site it no longer works - I do not receive the e-mail. If I put a straight HTML contact form up there it works. Does anyone have any idea what could be going wrong?

Thanks much,
-Mary

P.S. I've been at this for months so help would be SoooOOO appreciated.

MX/php Contact Form
Hi.

I'm trying to make a contact form work that I downloaded here:
http://flashkit.com/movies/Interface...9916/index.php

I changed the PHP to my own information, and I'm on a server with PHP installed, I just can't seem to get it to work. It always sticks at the "waiting for confirmation" screen. I even uploaded it as-is (excepting the PHP changes) and
it does the same thing.

I wrote a quick script that uses mail() and tested it to make sure there's nothing funny going on with sendmail -- there isn't. It works fine.

I know flash decently, and I'm good with PHP, but I do not know how these two interact. Help?

Contact Us Form?
Im designing a Flash Contact Us Form which has - Name, Email Id & Message -fill this and send (should be mailed to an email id). Validations - all fields are mandatory. If some field is left blank and submit button clicked, it should say the corresponding field is empty !?!

Please post a tutor or a sample action script for this.

Also i would like to know if we should use any mail component for the mail to be sent (like cdonts mail component in asp)

Thanks in advance.

Contact Form Help
I'm using a standard contact/php form. When the user has filled in the details the 'send' button goes to frame 2, with text saying the email has been sent, etc. Is there any way that, when the 'back' button is pressed to go back to the first frame, I can clear the input textboxes of the text?

Contact Form
Ok i have searched and found the Kirupa Contact php form, but am still struggling to put it into my site.

I also want it to show a thank you page as on Kirupas one.

Can somebody help me. - (ill send them the .fla so they can have a play if they want.)



Also i have a wav file which i want to keep playing but it just keeps repeating before the song ends? If someone could also help me with this it would be much appreciated.

Help WITH A CONTACT FORM
Hi
I am trying to make a "Contact us" form in flash and somebody had helped me by giving me a code that does not WORK. Can anyone help me out if you already have one of this that works by emailing it to me to: ilianazm@gmail.com?

or else, can anyone tell me how can I make one of this forms that DOES work.

Thanks a lot.

Love from Mexico

Iliana

CGI Contact Form
dose anyone knows how to creat a CGI contact form in flash 2004MX?

Contact Form Help
Hey, i have a template which has a Name feild, email feild, and a message feild. Along with a reset button and a Submit button.

No idea how to get it to work, i know i need php, but what do i paste in the action script area for those feilds.

Any help appreicated, thanks

Contact Form
Can I have the actionscript to send data to a contact form script to send as a email? thanks!

Contact Form
Hi,

I am using a template from Template Monster and I was wondering could someone tell me how to work the contact page.................e.g. how can it be set up sot hat when someone fills it in it is sent to an email address.

Thanks

Please Help....Contact Form
I've searched everywhere on google and done tons of tutorials on creating contact forms in flash but none of them have worked. Could someone help me to do this? my site loads the external "Contact Page" and on that page there is a movieclip and this is where my form is in. Could this be why the tutorials weren't working, cause I didnt actually have the form on the main timeline but in a movieclip? I'd appreciate any help I can get.

Contact Form
Hiya,

I have a template which someone setup for me. The form doesnt work as there isnt a script with it. I sent an email to the company it was brought from and said i could buy one.
This sounded like they were trying it on to me. Is the only way to make it work by actually buying a script from them?

Thanks to anyone who can shed some light on this for me?!?!?

Aza...

Contact Form
i don't know why it doesn't work...can you tell me? and may be correct it?

home.arcor.de/nastja1989/new/form.rar


thanks!!!!!!!!!!!!!!!!

my page til now is: home.arcor.de/nastja1989/new/

Help With Contact Form
i havent have any sleep for the past 24 hours working on this so I try to make it short

can anyone help me with this contact form im working on? somehow, i cant get the form to submit

any help would be appreciated.

Files I need help with(FLA & PHP)
Online Site

thanks in advance. sorry if i sound rude asking help lol

[F8] Contact Form Help
Hey guys. I'm working on thsi contact form that ws totally wrecked by previous developers. Anyways, I added some fields to it (mailing address, city, state zip) but when someone fills it out, it does not submit that information. Is it something in the flash or mailer.php document or FormMail? I'm not a php expert so help would be greatly appreciate. Thanks a lot

I stripped out the contact section of thet site and here is the code shown from the mailer.php document.


Thanks


mailer.php


<?php
//Bates Creative Group E-Mailer
//mailer.php
//Created by: D. Christopher Goodman
//Created: 2006.08.22.12.25EDT
//Updated: 2006.08.22.12.25EDT

//Initializations
$to="christopher.goodman@newvillagemedia.com"; //E-Mail to send the form data to.

if (!empty($_POST['senderEmail'])||!empty($_POST['senderMessage'])||!empty($_POST['senderSubject'])||!empty($_POST['senderName']))
{
$name=$_POST['senderName'];
$email=$_POST['senderEmail'];
$subject=stripslashes($_POST['senderSubject']);
$body=stripslashes($_POST['senderMessage']);
$body.="

---------------------------
";
$body.="Mail sent by: $name <$email>
";
$header="From: $name <$email>
";
$header.="Reply-To: $name <$email>
";
$header.="X-Mailer: PHP ".phpversion()."
";
$header.="X-Priority: 1";
if(@mail($to,$subject,$body,$header))
{
echo "Mail sent.";
}
else
{
echo "Mail not sent.";
}
}
else
{
echo "Not all vars were posted.";
}
?>

Contact Form
Hello people,

Ok, I am trying to implement a contact form in a website but when I recieve the message the e-mail comes all blank, except for the title of the field.

It looks like this:

******
Message from the Gables Square website:

Subject:

Name:

Phone:

E-mail:

Comments:
******

I have checked the fields' names to match the PHP file and they are correct.

What do you think is the problem then? You can checkout the development website in this link: http://www.gablessquare.com/dev/

Thanks a lot guys,

(Flash version: 8)

[F8] Contact Form
I have a template from template monster - how do I get the contact form to work?

Contact Form...
I made a contact form following a tutorial. When I fill in the form to test it, the email sends, but all the information is blank. Can't find what I've did wrong. I'm using Flash MX 2004.

Contact Form
hi everyone,

I have a contact form that has text fields, text areas and combo boxes as the components used on it. This form works with a php file that sends the info over the internet.

in the flash file, all components were put in a movie clip which holds them.

Text fields are of type input as they ought to be. Instead of using instance name, variable names were used to get the component values. This works well for text fields because they have variable names, how can I include text areas and combo boxes so that I can get the values.

note: the php code works so I didnt include it to the attachment. All values display in the mail but not those in combo boxes and text areas.

thanks for reading.

[F8] Contact Form
Hi...

I am trying to implement a flash contact form in my site, but I would like to have a 'fluid form'...i know this isn´t the best words to explain what I am trying to say, but let me explain: A form you input your name, telephone and any other fields and after when you hit submit the page did not open a asp page to process the data, instead of the flash itself, in the main page send the data and after the flash display: 'mensage sent'...

I am trying to find some example over the internet with this and got stucked... can someone help me with this?

Thanks in advanced for any, any info.

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