Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component in flash. I usually use PHP to push data from a text field and email. But i’m stuck here, because the datefield is not a text field. Can anyone please help me.
someone gave me this code to trace the date.
myDateField.addEventListener(“change”, this.getDate);
function getDate(evt:Object):Void {
trace(evt.target.selectedDate);
}
The above code traces the output.
Can someone also please tell me, the code for how to push the data to a PHP email script that i have. I have defined the text fields with variables.
Thanks so much. The script for the Submit button is as follows:
on (release) {
if (startDate eq “” or endDate eq “” or registrationType eq “” or messasge eq “”) {
stop ();
} else {
loadVariablesNum (“form.php”, 0, “POST”);
gotoAndStop (21);
}
}
I’m not a pro in flash. Please help me.
Cheers