# DateField Component and PHP

**URL:** <https://forum.kirupa.com/t/datefield-component-and-php/216099>\
**Category:** flash\
**Created:** [February 13, 2007, 7:53pm UTC](https://forum.kirupa.com/t/datefield-component-and-php/216099 "2007-02-13T19:53:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ipuff](https://avatars.discourse-cdn.com/v4/letter/i/4af34b/32.png) [@ipuff](https://forum.kirupa.com/u/ipuff)\
**Post date:** [February 13, 2007, 7:53pm UTC](https://forum.kirupa.com/t/datefield-component-and-php/216099/1 "2007-02-13T19:53:33Z")

</div>

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
