Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 03-15-2012, 09:48 AM   #1
Registered User
Join Date: Mar 2012
Posts: 2
Post LoadVars undefined

Hey there,
i need to built a kiosk application where users can enter their email and name. This information should be emailed. So i have set up a as2 file with 2 input text fields, bot with variables. "name" and "email". Instance name "name_txt" and "email_txt".
This is my code in flash
ActionScript Code:
var email = email_txt.text; var name = name_txt.text; var my_lv:LoadVars = new LoadVars(); send_btn.onRelease = function(){ my_lv.email = email_txt.text; my_lv.name = name_txt.text; my_lv.send("email.php", "_blank", "POST"); }
and this is my php code
PHP Code:
"[email protected]";
$subject "ContactForm";

$headers "From: " $_POST["name"];
$headers .= "<" $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " $_POST["email"] . "\r\n";
$headers .= "Return-Path: " $_POST["email"];
$message $_POST["message"];

i do get the mails, but they appear as "undefined"
maybe you cxan help me out by pointing me in the right direction. Must be a stupid mistake i make there. Thanks for helping me out!

Last edited by zenrage; 03-15-2012 at 12:16 PM.
zenrage is offline   Reply With Quote

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 11:37 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.