PDA

View Full Version : order form using flash/AS


thebloodpoolkid
02-05-2003, 06:14 PM
what I am looking to do is create an order form. In the form I want there to be input tect boxes consisting of the following:
Name
Address
Phone #
Item #
=====================

that info once entered and the end user (purchaser) clicks on the submit button it will apear in my email box.

How can this be done?
any suggestions

I have attempt the tut on this site but its not quite what I am refering to. It is using php I want to use actionscript alone if possible.

xxlm
02-05-2003, 06:43 PM
You should know how to send var (loadvariables or LoadVars() object).
You should know php or asp.
php is better I think. You simply have to use the mail object.
There is plenty of tuts on it...

Good luck!

thebloodpoolkid
02-05-2003, 11:09 PM
ok Thanks. Will give it a try and see what I can come up with.


but is there any way for me to accomplish this via action script?
I found something that I think may work

http://www.flashkit.com/movies/Interfaces/Forms/Form_Val-Chris_So-173/index.php

how about a suggestion. All I want is a simple very basic form that will allow the user to email me with that info stated above.
no database involved just varibles I supose. Keep in mind I am only a begginer with AS and have no knowledge of php, asp.

rynoe
02-06-2003, 02:49 AM
Also, this is oh so easy to do with flashmx if you have access to perl, I can give you the package if you want it

thebloodpoolkid
02-06-2003, 04:34 AM
MX I have. Perl I do not. Any help would be greatly appreciated.

simontheak
02-06-2003, 07:41 AM
I'd be interested to see how you did rynoe, if that package is still around ;)

rynoe
02-06-2003, 10:17 PM
here (http://hurlburts.com/rynoe/rynoemail.html) is the working site, sends me emails.

here is perl code: (caps are adjustable)

#!/usr/bin/perl
require "cgi-lib.pl";
&ReadParse(*input);
print &PrintHeader;
$mailprog = "/usr/sbin/sendmail";
open (MAIL, "|$mailprog -t");
print MAIL "To:$input{from}\n";
print MAIL "From:$input{from}\n";
print MAIL "Subject: FORM\n";
print MAIL "$input{fname} $input{lname},\n";
print MAIL "$input{comment}\n ";
close(MAIL);
print "<html><head><body bgcolor='#000000'><meta http-equiv='REFRESH' content='0;
URL=http://www.WHATEVER.com'></body></head></html>\n";


just click yes to pass variables and use post method in flash use getURL method

include in form input text with variables 'fname', 'lname' and 'comment'. and declare 'from' variable whatever email you want to send it to...

you need a current cgi-lib.pl and make sure the paths to perl is the same as above..........

simontheak
02-07-2003, 07:26 AM
Thanks very much rynoe