alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user adrianTNT
adrianTNT (32)

Contact Form

This is a contact form made with flash and php. Edit mailer.php and change [email protected] with your email, make sure that email is hosted on same server where you put the files. Upload swf, html and php file then access the html or swf file to test the contact form.
Listing url: www.macromediahelp.com/flash/php_flash_con...
6366 downloads, 28273 views

flash contact form php mail


Download (39.43 KB)

Comments

You need to login to post a comment.

user sumitinspark
sumitinspark 13 years ago

Thanx again!

user martilovessony
martilovessony 14 years ago

I did everything asked for in your quick tutorial. I don't understand the problem. Is it okay im loading the page into and html page?

thanks

user weirdwired
weirdwired 14 years ago

Simple and best of all it work fine! Thanks to you. now i can try a bit more complex forms.

user padrinorattatta
padrinorattatta 15 years ago

hi, i upload the swf file and the php file... i also change my email in the mailer.php, its hosted on the same server but it doesnt work, can you help me please, i dont understand why it doesnt work. My server allowes php files too....
Im getting mad.
THANKS

user Ernani
Ernani 15 years ago

I believe that the problem is here: It helps me please.

stop();
System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();
my_vars.sender = email_box.text;
my_vars.subject = subject_box.text;
my_vars.message = message_box.text;
if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {
my_vars.sendAndLoad("mailer.php",my_v ars,"POST");
gotoAndStop(2);
} else {
error_clip.gotoAndPlay(2);
}
my_vars.onLoad = function() {
gotoAndStop("<>", 3);
};
email_box.onSetFocus = subject_box.onSetFocus=message_box.onSet Focus=function () {
if (error_clip._currentframe != 1) {
error_clip.gotoAndPlay(6);
}
};
};



What I must make? In more very very exactly!

user Ernani
Ernani 15 years ago

Hi, As Adrian goes. I installed in my site this form of contacts. Already I executed a test and already I am obtaining to order email. I only am in doubts a fact: It is following when the control the email has tested it control the email but it goes and it stops in frame 3 of my site. What I must make?

user RachNRoll
RachNRoll 15 years ago

very nice work! thank you very much

user richwww
richwww 16 years ago

Great work, but I have noticed that it doesnt work with Safari.

The form confirms that the message was sent, but despite a few attempts I dont receive any mail. It works perfectly in other browsers. If anybody has any suggestions as to how I could try to fix this I would really appreciate it.

Im using Safari 3.1.2 on Mac OSX 10.5.4. I actually much prefer firefox as a browser, but I understand lots of people like Safari.


Rich

user richwww
richwww 16 years ago

thanks very much!

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

Another one html form with captcha: thewebhelp.com/php/php_contact_form_with _image_validation/

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

I think it should work with php 5.

user nanoffiles
nanoffiles 16 years ago

Nice Job Adri. Any problem working in Servers runing PHP5.?

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

Maybe your server is blocking you form sending emails by PHP, is the email you entered one @yoursite.com or yahoo, gmail, hotmail, etc?

user webefe
webefe 16 years ago

Hi, sorry it didn't work for me. I'm a bit new at the php thing. I've uploaded the mailer.php and the swf form to my server, i changed the email address to mine, and when i tested it, i got no replies. am i missing something?

user jing1
jing1 16 years ago

robbing this one ;p

user Tof
Tof 16 years ago

Wow, this is very helpful for someone like me who is afraid of PHP, and needs a simple practical example to get started.

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

Martinez, I have a second scenario in my mind ... a user takes a long time to write a message and subject, email links, then he clicks the "clear form" button by mistake and all the info is gone :) That will be bad, I think clearing the fields manually would not take very long (if is needed).

user Marto
Marto 16 years ago

Adrian...why don't you add a reset button coz in a scenario where many fields are involved the user has to actually erase mistakes manually..

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

Fedemart, it is a bit complicated if you do not have some flash skills, you need to modify the flash file to duplicate teh text fields, then modify the php file to catch the additional variables (field names) and include them in the message, I suggest that you get a flash designer or web developer to help you with this customization.

user fedemart
fedemart 16 years ago

I download it and it works just fine. The problem is that I need more fields in the form. How could I manage to do that? Maybe someone could help me out with the scripts.

Thanks.

Fede.