Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : input text form + submit button actionscript



leighRing
5/20/2004 9:36:32 PM
I have a contact page that has an input text form and a submit button. What is
the actionscript for the input text field called - name.txt - that sends the
text entered to my client's email address? I am only this far...

submitURL = "/home/shb2_016/michellesherry.com/cgi-bin";

function onSubmit() {
formData = new LoadVars();


I am also aware that I have to write code for a .asp file and place it in this
folder...

/home/shb2_016/michellesherry.com/cgi-bin

But I do not know what the code would be please help if you can. This seems
like it should be so simple, but I am really stumped! :)


kglad
5/21/2004 12:51:47 AM
if you don't know perl or asp you can still use the clients default email
program:

on (release){
getURL ("mailto:" +"yourclient@whatever.com"+ "?cc=" + cc + "&subject=" +
subject + "&body=" +name.text)
}

with a little initiative you could lift someone else's asp email program and
inert your client's email address.
Laiverd.COM
5/21/2004 1:03:23 PM
This tutorial uses PHP for sending the message, but the basics are the same
for asp, cgi or whatever serverside scripting:
http://home.hccnet.nl/john.mulder/flash/tutorials/flash_php_mailform.zip

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button