Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-19-2012, 10:41 AM   #1
newbey flash
Registered User
 
Join Date: Jun 2012
Posts: 3
Default [AS2] Contact Form in Flash 6 w Combo Boxes

Hi there, I have been trying to nut this out using various threads but cant seem to find the right answer? Just trying to do a simple contact form with some combo boxes, have labelled all the comboboxes and set the text boxes to input and labelled them etc. Getting various error messages, heres my script:

on (release) {
if (birthdatecombobox eq "" or birthmonthconmbobox eq "" or firstname eq "" or surname eq "" or postaladdress eq "" or suburb eq "" or statecombobox eq "" or postcode eq "" or mobile eq "" or email eq "") {
stop();
} else {
form.somevar = form.birthdatecombo.getValue();
form.somevar = form.birthmonthcombo.getValue();
form.somevar = form.statecombo.getValue();
loadVariablesNum("emaillapform.php", 0, "POST");
gotoAndStop (2);
}
}


Heres my PHP called emaillapform.php:

<?php
$to = "insertemailaddresshere.com.au";
$subject = "Birthday Club Form";
$message = "$birthdatecombo\n\n";
$message = "Combo Choice " . $_POST["somevar"] . "\r\n";
$message = "$birthmonthcombo\n\n";
$message = "Combo Choice " . $_POST["somevar"] . "\r\n";
$message = "$firstname\n\n";
$message = "$surname\n\n";
$message = "$postaladdress\n\n";
$message = "$suburb\n\n";
$message = "$statecombo\n\n";
$message = "Combo Choice " . $_POST["somevar"] . "\r\n";
$message = "$postcode\n\n";
$message = "$mobile\n\n";
$message = "$email\n\n";
mail($to, $subject, $msg, "From: My web site\nReply-To: $email\n");
?>


Can anybody tell me where i am going wrong, its drivinng me nuts....

Any help will be greatly appreciated, cheers
newbey flash is offline   Reply With Quote
Old 06-19-2012, 10:55 AM   #2
Prid
Prid - Outing
 
Prid's Avatar
 
Join Date: Oct 2009
Location: Halden, Norway
Posts: 1,191
Send a message via MSN to Prid Send a message via Skype™ to Prid
Default

what do the errors say?
__________________
I have returned, and am now 18
Prid is offline   Reply With Quote
Old 06-19-2012, 01:58 PM   #3
newbey flash
Registered User
 
Join Date: Jun 2012
Posts: 3
Question

When I test the php form on the server, this is the error I receive, however all text boxes and combo boxes are labelled?:


Notice: Undefined variable: birthdatecombo in /clientdata/zeus-dynamic-1/l/a/sitename.net.au/www/emaillapform.php on line 4

Notice: Undefined index: somevar in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 5

Notice: Undefined variable: birthmonthcombo in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 6

Notice: Undefined index: somevar in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 7

Notice: Undefined variable: firstname in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 8

Notice: Undefined variable: surname in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 9

Notice: Undefined variable: postaladdress in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 10

Notice: Undefined variable: suburb in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 11

Notice: Undefined variable: statecombo in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 12

Notice: Undefined index: somevar in /clientdata/zeus-dynamic-1/l/a/sitename..net.au/www/emaillapform.php on line 13

Notice: Undefined variable: postcode in /clientdata/zeus-dynamic-1/l/a/sitename.net.au/www/emaillapform.php on line 14

Notice: Undefined variable: mobile in /clientdata/zeus-dynamic-1/l/a/sitename.net.au/www/emaillapform.php on line 15

Notice: Undefined variable: email in /clientdata/zeus-dynamic-1/l/a/sitenamenet.au/www/emaillapform.php on line 16

Notice: Undefined variable: email in /clientdata/zeus-dynamic-1/l/a/sitename.net.au/www/emaillapform.php on line 17

Last edited by newbey flash; 06-19-2012 at 02:01 PM. Reason: to protect site
newbey flash is offline   Reply With Quote
Old 06-21-2012, 10:23 AM   #4
newbey flash
Registered User
 
Join Date: Jun 2012
Posts: 3
Default Anyone able to assist???

Can anyone advise where i am going wrong please?

Thanks
newbey flash is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:11 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.