27, May 2012

Mail form in Flash - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Graphics & Multimedia  >  Macromedia Flash & Actionscript (Moderator: Meth0d)
Topic: Mail form in Flash
« previous next »
Pages: [1] 2 Print
Instabuck - The easy way to sell digital products online

Author Topic: Mail form in Flash  (Read 7126 times)
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« on: Nov 23, 2006, 07:08:25 pm »

Hey! So on my website, I have a mail form within flash and for some reason I am having two problems with it.
Problem 1: The actual email will not send
Problem 2: When you press send ont he form, it goes to a new part of my flash project that says thank you and has a back button, but then when you press back, nothing happens.
Help?
Here are the files:
http://www.theugly-club.com/uglymenu.fla
http://www.theugly-club.com/form.php
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Nov 23, 2006, 07:10:56 pm »

First of all, are you sure that the php form works?

I mean have you tried to use an html form and send data there to mail them?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #2 on: Nov 24, 2006, 02:05:35 am »

yes, the php form works becuase the email is sending, but none of the text that was written comes up.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Nov 24, 2006, 08:06:28 am »

yes, the php form works becuase the email is sending, but none of the text that was written comes up.

post the code of you form.php file

Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #4 on: Nov 24, 2006, 04:20:50 pm »

<?php
$to = "dtedaldi@comcast.net";
$msg = "$name\n\n";
$msg .= "$message\n\n";
mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");
?>

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Nov 24, 2006, 04:37:59 pm »

This gform would work only with register_globals = on.

As most of the hosts don't have this on by default add this to your php script (in the first line)  :

Code:
ini_set('register_globals', true);

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Nov 24, 2006, 04:41:42 pm »

try to name the instances...

Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #7 on: Nov 24, 2006, 05:44:31 pm »

i'm sorry, but taking both of what you said into account, what should my new code look like?
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #8 on: Nov 24, 2006, 05:44:58 pm »

and does anyone know how o fix the other part of my problem?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #9 on: Nov 24, 2006, 05:47:09 pm »

Code:
<?php
ini_set
('register_globals'true);
$to "dtedaldi@comcast.net";
$msg "$name\n\n";
$msg .= "$message\n\n";
mail($to$subject$msg"From: My web site\nReply-To: $email\n");
?>


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #10 on: Nov 24, 2006, 06:12:21 pm »

I put that in, and the message sends but it still doesn't have any of the information that was typed.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #11 on: Nov 24, 2006, 06:14:47 pm »

I put that in, and the message sends but it still doesn't have any of the information that was typed.

Then you are not giving the correct names to the flash variables that are posted to the php script.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #12 on: Nov 24, 2006, 08:29:51 pm »

the flash variables are named "name" "message" "subject" and "email"
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: Nov 24, 2006, 09:52:39 pm »

the flash variables are named "name" "message" "subject" and "email"

just out put the vars in your form.php (echo) and see what happens

Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #14 on: Nov 24, 2006, 10:27:24 pm »

I'm sorry... i have no idea what that means...
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Nov 24, 2006, 10:28:24 pm »

I'm sorry... i have no idea what that means...
replace all code with print_r($_POST);

Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #16 on: Nov 25, 2006, 09:19:42 pm »

i tried that and it didnt work...
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: Nov 25, 2006, 09:36:26 pm »

if you don't see something there then is no mail send...

Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #18 on: Nov 25, 2006, 09:37:56 pm »

huh?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #19 on: Nov 25, 2006, 09:45:49 pm »

huh?
you said that the mail is send but the message is empty.

if the code above doesn't give a result its impossible that you mail is send with the users name, subject, email address


Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4934
Tags : php html tutorials email Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] 2 Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Graphics & Multimedia  >  Macromedia Flash & Actionscript (Moderator: Meth0d)
Topic: Mail form in Flash
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 11:05:04 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 62.814
Total Topics: 11.028
Total Members: 21.451
Tutorials : 58
Resources : 929
Designs : 395
Latest Member: sobbin

114 Guests, 1 User online :

11 users online today:




Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.