# URGENT: CGI user input email form

**URL:** <https://forum.kirupa.com/t/urgent-cgi-user-input-email-form/28333>\
**Category:** flash\
**Created:** [August 12, 2003, 5:57pm UTC](https://forum.kirupa.com/t/urgent-cgi-user-input-email-form/28333 "2003-08-12T17:57:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![the\_chad](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@the\_chad](https://forum.kirupa.com/u/the_chad)\
**Post date:** [August 12, 2003, 5:57pm UTC](https://forum.kirupa.com/t/urgent-cgi-user-input-email-form/28333/1 "2003-08-12T17:57:49Z")

</div>

Hi there,

I have exhausted so many options to try and get a generice form to email working in Flash 5 and can’t seem to do it. I have created all of my Input Text fields and given them variables and have put the following code on the submit button… but it still doesn’t work… in fact none of the several ones I found on the web worked either. Please help quick!

Submit button code:

on (release) {  
loadVariablesNum (“[http://cgi.domainname.co.nz/cgi-bin/email.cgi](http://cgi.domainname.co.nz/cgi-bin/email.cgi)”, 0, “POST”);  
subject = “Enquiry from Website”;  
recipient = "email@mydomain.com";  
gotoAndPlay (“thankyou”);  
}

Thanks in advance

---

<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:** [August 13, 2003, 6:03pm UTC](https://forum.kirupa.com/t/urgent-cgi-user-input-email-form/28333/2 "2003-08-13T18:03:19Z")

</div>

well i don’t know any cgi but it seems that you are definaing who the email goes to in your flash code, you can do that but maybe try defining it it the cgi, just a thought

---

<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:** [August 13, 2003, 6:57pm UTC](https://forum.kirupa.com/t/urgent-cgi-user-input-email-form/28333/3 "2003-08-13T18:57:50Z")

</div>

tru putting the recepient and subject lines before the loadVariablesNum() line!  
and if that doesn’t work try

loadVariablesNum (“[http://cgi.domainname.co.nz/cgi-bin/email.cgi?subject=Enquiry](http://cgi.domainname.co.nz/cgi-bin/email.cgi?subject=Enquiry) from [Website&recipient=email@mydomain.com](mailto:Website&recipient=email@mydomain.com)”, 0, “POST”);
