Skip to main content
Known Participant
April 3, 2007
Question

Emailing from Flash 8

  • April 3, 2007
  • 13 replies
  • 1224 views
I have built a contact form for a site (my first proper flash site) and it wont work?! i built it according to a lot of looking through online tutorials. Im using input text boxes and labeling them using the var: property box like in the tutorials but when it come time to send i get an error report from my ISPs cgi script saying i havent defined the recipent - which i have done according to examples i have seen ie creating a input box labeling var: recipient and typing my email into the box

this is the AS i use (attached to submit button) to send:
on (release) {
getURL(" http://www.mydomain.com/bin/FormMail.cgi", "_blank", "POST");
}

What am i doing wrong?

PLEASE HELP - IM REALLY CONFUSED!?
This topic has been closed for replies.

13 replies

kglad
Community Expert
Community Expert
April 11, 2007
yourStringVarName = "yourVarValue";
yourNumberVarName = 33;
Known Participant
April 11, 2007
Is this put in top layer actions frame or is it also attached to button?
Is this what i am meant to do:

recipient = "me@mysite.com"

//where recipient is name put in the var field on properties inspector
//and "me@mysite.com" is recipient email address that is to be sent to script?

name = "" // for define that the text entered by user is to be sent?

Also this is the revised button code:

on (release) {
loadVariableNum (" http://www.mydomain.com/bin/FormMail.cgi", "0", "POST");
}

Sorry if it sound like i dont know what im doing as i have tried a lot of different codes and i havent been able to get any to work so i want to make it very clear that im not missing any thing

Thanks for the help
kglad
Community Expert
Community Expert
April 5, 2007
if you use loadVariablesNum(0), all variables needed by your FormMail.cgi script will need to be defined on the _level0 timeline.
Known Participant
April 10, 2007
Great - How do i define them?
kglad
Community Expert
Community Expert
April 3, 2007
do you really want to open another browser window when your button is released. if yes, leave your getURL() alone. if no, use loadVariables, loadVariablesNum() or better use the LoadVars() class.

next, where are your variables defined and is that button a true button or a movieclip button?
Known Participant
April 5, 2007
Will use loadVariableNum() Thanks
The variables are defined by entering the names ie recipient etc into the var field in properties inspector. Are they required to be defined elsewhere? (im still learning Actionscript as i go)

As for the button it is a true button with the script attached to button

Thanks for the help