9, July 2008

Mail form in Flash - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

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


« on: Nov 23, 2006, 08: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 Visit through proxy
http://www.theugly-club.com/form.php Visit through proxy
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7942
40601 credits
Members referred : 3



« Reply #1 on: Nov 23, 2006, 08: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
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #2 on: Nov 24, 2006, 03: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: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Nov 24, 2006, 09: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


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #4 on: Nov 24, 2006, 05: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: 7942
40601 credits
Members referred : 3



« Reply #5 on: Nov 24, 2006, 05: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
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6274
38470 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Nov 24, 2006, 05:41:42 PM »

try to name the instances...


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #7 on: Nov 24, 2006, 06: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, 06: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: 7942
40601 credits
Members referred : 3



« Reply #9 on: Nov 24, 2006, 06: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
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #10 on: Nov 24, 2006, 07: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: 7942
40601 credits
Members referred : 3



« Reply #11 on: Nov 24, 2006, 07: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
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #12 on: Nov 24, 2006, 09:29:51 PM »

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


It's time to use PHP5!


« Reply #13 on: Nov 24, 2006, 10: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


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #14 on: Nov 24, 2006, 11:27:24 PM »

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


It's time to use PHP5!


« Reply #15 on: Nov 24, 2006, 11:28:24 PM »

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


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #16 on: Nov 25, 2006, 10:19:42 PM »

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


It's time to use PHP5!


« Reply #17 on: Nov 25, 2006, 10:36:26 PM »

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


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #18 on: Nov 25, 2006, 10:37:56 PM »

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


It's time to use PHP5!


« Reply #19 on: Nov 25, 2006, 10: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



Last blog : 4th of July Lottery from TemplateMonster.com
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jul 09, 2008, 10:57:12 AM





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: 35.584
Total Topics: 7.355
Total Members: 3.661
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: komrad

29 Guests, 5 Users online :

18 users online today:



Readers

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