# Email

**URL:** <https://forum.kirupa.com/t/email/220644>\
**Category:** Uncategorized\
**Created:** [March 27, 2007, 10:32pm UTC](https://forum.kirupa.com/t/email/220644 "2007-03-27T22:32:55Z")\
**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:** [March 27, 2007, 10:32pm UTC](https://forum.kirupa.com/t/email/220644/1 "2007-03-27T22:32:55Z")

</div>

Hi Everyone,  
I am pulling my hair over this. Can anyone please help me with this. I have created an inquiry tool. I wanna put two different pop up messages. I have no idea what am i doing wrong but it does not work. I want the user to enter all the required fields. If all the fields are entered then I want the email to be sent. Can anyone please please please look at this code and see whats wrong with this.

on (release)  
{

if (pickDateText1 != undefined && pickTimeText1 != undefined && dropDateText1 != undefined && dropTimeText1 != undefined && vehicleTypeText1 != undefined && pickLocationText1 != undefined && dropLocationText1 != undefined && name != undefined && email != undefined && phone != undefined && newslettertext1 != undefined) {

loadVariablesNum (“reservation.php”, 0, “POST”);

```
import mx.controls.Alert;

```

myClickHandler = function (evt){  
if (evt.detail == Alert.OK){

```
}

```

}

Alert.show(“Thank you very much. Your inquiry has been sent”, “Alert”, Alert.OK);

}  
else{  
Alert.show(“Please Enter all the required Fields”, “Alert”, Alert.OK);

}  
}

Thanks so much.
