Radio Buttons data through email

This is a discussion on "Radio Buttons data through email" within the Flash & Multimedia Forum section. This forum, and the thread "Radio Buttons data through email are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 13th, 2006, 02:31
New Member
Join Date: Aug 2006
Location: orlando
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Radio Buttons data through email

I have to textinput field and 4 radiogroups, I can not get this information to send to my email address, can someone please help me before I jump?

Actionsript:

// create load vars object. this is what you use to send the data to php page.
var rsvpInfo:LoadVars = new LoadVars();
// optional user feedback letting them know if the email was sent successfully.
/*rsvpInfo.onLoad = function( loadSuccessful:Boolean )
{
if ( loadSuccessful )
{
txtUserMessage.text = rsvpInfo.thanksMessage;
}
else
{
txtUserMessage.text = "Error connecting to server.";
}
};
*/
// create button component listener (listens for the button 'click' event)
var submitListener:Object = new Object();
submitListener.click = function()
{
// set up vars to send to the php page
// guest names
rsvpInfo.guest1 = txtGuest1.text;
rsvpInfo.guest2 = txtGuest2.text;
rsvpInfo.guest3 = txtGuest3.text;
rsvpInfo.guest4 = txtGuest4.text;
// guest food
rsvpInfo.guest1meal = guest1meal.selection.data;
rsvpInfo.guest2meal = guest2meal.selection.data;
rsvpInfo.guest3meal = guest3meal.selection.data;
rsvpInfo.guest4meal = guest4meal.selection.data;
// main guest email address
rsvpInfo.emailAddress = txtRsvpEmail.text;
// send the stuff to the php page.
rsvpInfo.sendAndLoad( "rsvp.php" , rsvpInfo, "POST" );
};
// register 'click' event listener.
submit.addEventListener( "click", submitListener );


php:

<?PHP
$to = "email address here";
$subject = "RSVP Confirmation & Dinner Reservations";
$message = "Name: " . $guest1;
$message .= "\nEmail: " . $emailAddress;
$message .= "Main Guest Name: " . $guest1 . "\r\n";
$message .= "Main Guest Dinner: " . $guest1meal . "\r\n\r\n";
$message .= "Addtional Guest 1 Name: " . $guest2 . "\r\n";
$message .= "Addtional Guest 1 Dinner: " . $guest2meal . "\r\n\r\n";
$message .= "Addtional Guest 2 Name: " . $guest3 . "\r\n";
$message .= "Addtional Guest 2 Dinner: " . $guest3meal . "\r\n\r\n";
$message .= "Addtional Guest 3 Name: " . $guest4 . "\r\n";
$message .= "Addtional Guest 3 Dinner: " . $guest4meal;
$headers = "From: $emailAddress";
$headers .= "\nReply-To: $emailAddress";
mail($to,&subject,$message,$headers);
?>
Reply With Quote

  #2 (permalink)  
Old Aug 22nd, 2006, 01:19
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Radio Buttons data through email

Please attach the fla so I can better trouble shoot the problem. If you don't want to attach because it has other stuff in it just copy and paste it into a new flash document. I would love to help. I love PHP and Flash. So just do that and I am sure I can get this working for you.
Reply With Quote
Reply

Tags
radio, buttons, data, through, email

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Help with Radio buttons Oak JavaScript Forum 17 Feb 2nd, 2008 09:44
Radio Buttons and Javascript activeware JavaScript Forum 6 Dec 11th, 2007 18:02
How do i submit a form with radio buttons ? Accurax Web Page Design 5 May 12th, 2007 18:34
help with pagination and html radio buttons AdRock PHP Forum 5 Jul 27th, 2006 12:10
Radio Buttons redhead Web Page Design 2 Apr 12th, 2004 19:00


All times are GMT. The time now is 02:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43