I downloaded the Kirupa email form from this website and all the code looks good and im sure it works, but its giving me the same issue i am having with mine which makes me believe there might be something missing on the server.
but anyways.
i use URLLoader to post to my php script to send off an email once someone clicks submit. Well, once i post it online it doesn’t do anything. it just sits there and i never receive an email after pressing submit.
The same goes for the Kirupa email submit. I posted that one to my website with the .swf and the php script and changed the email to my email on that script and the flash based form just sits at submit.
When you run the kirupa flash form by itself it says “back” after you press submit and is at a blank screen. Which makes you believe it works. It does not do that when i have it uploaded to the website.
var request:URLRequest = new URLRequest(“ConventionSubmit.php”);
var variables:URLVariables = new URLVariables();
send_btn.addEventListener(MouseEvent.CLICK, sendActions);
function sendActions(event:MouseEvent):void
{
variables.email_address = email.text;
variables.first = fname.text;
variables.last = lname.text;
variables.facility = cb2.value;
variables.duration = duration.text;
variables.phone = phone.text;
variables.organization = organization.text;
variables.dates = date.text;
variables.hotelrooms = hotel.text;
variables.message_body = specifications.text;
request.data = variables;
request.method = URLRequestMethod.POST;
var urlLoader:URLLoader = new URLLoader();
urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
urlLoader.load(request);
}
This is the code im currently using. I’ve spent all day reading forums and online tutorials to try and figure out why it’s not sending my emails through the script.
They are both in the same folder.
Thanks for any comments