Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with a mail form!

Status
Not open for further replies.

infernoapbts

Programmer
Dec 13, 2002
20
US
I would like to create a form with flash mx for e-mail. ive created the form, but have no idea how to get the input text to my site's e-mail! if any one can help i would be much abliged.

thanx infernoapbts
 
couple of ways must however use third party php or asp whatever your server supports.

on the submit button
on (release) {
mymail = new loadvars();
mymail.subject= subject;
mymail.body = body;
//and so on for all fields
mymail.onload = message;
mymail.sendandload("full url to php file",mydata,"POST"};

// where message is a fuction to display to the user the the mail has been sent
 
I'm not sure On my server's menu I have Anonymos ftp, and pgp.

thanks again INFERNOAPBTS
 
type this into notepad and save the file as test.php

<?
phpinfo();
?>

open the file on your server and if a blank page appears then your server does not support php. however if it displays system info then you have php.
 
no I got a blank page! There is no other way besides using a third party php or asp?

infernoapbts
 
Woul it be possible to call the cgi script on my server directly? Soething like : Get URL{&quot;/cgi-bin/formmail.pl&quot;,vars=GET ??? Then would i have to configure the CGI script so that it can receive and send data originating from the Flash movie?

Many thanks
infernoapbts
 
there is always the mailto function but of course then your form is redundant but you may have to fall back on that

on (release) {getURL(&quot;mailto:you@you.com?SUBJECT=Web%20Site%20Mail&quot;);
}
//you can add other fields BODY etc but as far as I know you must enter this data yourself...it cant be taken from a variable on the page but i may be wrong. i often am.
 
alright, been bustin my hump tryin to get aroud this thing and I think i might be on to something! (I hope so anyway) What I did was create a pgp key pair. I copied the public key onto my server, and in the form i named the recipient, the keyname, and the username as variables. now the mail comes through, but i don't get any of the stuff in the input text fields. I gave the text fields variable names ie: realname. Then under the actions panel for the submit button, I set the variables like so:
onClipEvent (load) {
recipient = &quot;mymail@mysite.com&quot;;
keyname = &quot;my key name&quot;;
username = &quot;server username&quot;;
}
on (release) {
realname = &quot;name&quot;;
address_line1 = &quot;adress line 1&quot;;
address_line2 = &quot;address line 2&quot;;
phone = &quot;phone number&quot;;
email = &quot;e-mail&quot;;
comments = &quot;you wrote&quot;;
}
now like i said the mail comes but i dont get the name, address comments ect.....

thanx
infernoapbts
 
i am not quite sure what you are doing but i think that this looks more promising
on (release) {
&quot;name&quot;= _parent.realname;
&quot;address_line 1&quot;= _parent.address_line1;
//and so on
}
 
No that is'nt working either. Thank you for your assistance

infernoapbts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top