# Calling php script and immediately finish it

**URL:** <https://forum.kirupa.com/t/calling-php-script-and-immediately-finish-it/26382>\
**Category:** Uncategorized\
**Created:** [July 22, 2003, 4:22pm UTC](https://forum.kirupa.com/t/calling-php-script-and-immediately-finish-it/26382 "2003-07-22T16:22:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![otoman](https://avatars.discourse-cdn.com/v4/letter/o/b3f665/32.png) [@otoman](https://forum.kirupa.com/u/otoman)\
**Post date:** [July 22, 2003, 4:22pm UTC](https://forum.kirupa.com/t/calling-php-script-and-immediately-finish-it/26382/1 "2003-07-22T16:22:22Z")

</div>

When I call php script from action script e.g. to send a mail …

on (release) {  
var\_mail = new loadVars();  
var\_mail.name = \_root.mail\_meno;  
var\_mail.email = \_root.mail\_email;  
var\_mail.text = \_root.mail\_text;  
var\_mail.send (“sendmail.php”, “POST”);  
}

I don’t need opened window (with php script). I just want to send a mail without any visualisation of new window. How can I do it ?

Thans for you help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 5:20am UTC](https://forum.kirupa.com/t/calling-php-script-and-immediately-finish-it/26382/2 "2003-07-23T05:20:42Z")

</div>

send(url,windows,variables);  
url:no explanation required. eg:sendmail.php in your case  
windows:  
\_self=opens the new url in the current window;  
\_blank=opens the new url in a new window;

variables:  
GET=appends variables to the URL  
POST=sends variables in a separate HTTP header.

So, change your send to:  
send.(“sendmail.php”,\_self,“POST”);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 23, 2003, 9:19am UTC](https://forum.kirupa.com/t/calling-php-script-and-immediately-finish-it/26382/3 "2003-07-23T09:19:30Z")

</div>

\_self

or

“\_self”

the new windows appear …
