the_havock
New member
business webpage? i got this code from a tutorial for the flash part:
import flash.net.URLVariables;
import flash.net.URLRequest;
send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_22);
function fl_MouseClickHandler_22(event:MouseEvent):void
{
if (theName.text == "" || theEmail.text == "" || theMessage.text == "")
{
theFeedback.text = "fill everything please";
}
else
{
var allVars:URLVariables = new URLVariables();
allVars.name = theName.text;
allVars.email = theEmail.text;
allVars.message = theMessage.text;
var mailAddress:URLRequest = new URLRequest("Here goes the php form");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
theFeedback.text = "thanks!";
theName.text = "";
theEmail.text = "";
theMessage.text = "";
}
}
but they didnt say anything about the php form... so i dont know now what should i write in the php for my mail form to work
import flash.net.URLVariables;
import flash.net.URLRequest;
send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_22);
function fl_MouseClickHandler_22(event:MouseEvent):void
{
if (theName.text == "" || theEmail.text == "" || theMessage.text == "")
{
theFeedback.text = "fill everything please";
}
else
{
var allVars:URLVariables = new URLVariables();
allVars.name = theName.text;
allVars.email = theEmail.text;
allVars.message = theMessage.text;
var mailAddress:URLRequest = new URLRequest("Here goes the php form");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
theFeedback.text = "thanks!";
theName.text = "";
theEmail.text = "";
theMessage.text = "";
}
}
but they didnt say anything about the php form... so i dont know now what should i write in the php for my mail form to work