PDA

View Full Version : How can I get this form to send via email?


poindexter
01-07-2001, 05:55 AM
I've been at this all day (and now night). I have a simple feedback section that I want to allow users to fill out and then have it send that info via email. The form is sitting on level 1 of my main movie if that makes a difference. I'm using Flash 4.

The movie is here:
http://www.nerdfactory.com/acadsa/
and click on feedback

My ISP does not support PHP from what I can tell so I don't think that is an option. Any suggestions? My eyes are sore from staring at this monitor .....arg

Jesse
01-07-2001, 11:32 PM
You will have to use ASP or CGI then.

CGI is pretty easy and very standard. Chances are if your host doesn't support PHP then they wont suppost ASP, so stick with CGI if you can. There's opens ource which deals with submitting fors via CGI Mail here:
http://www.flashkit.com/movies/Interfaces/Forms/Simple_F-Chris_So-3255/index.shtml
http://www.flashkit.com/movies/Interfaces/Forms/Flash-ma-Andreas_-1502/index.shtml
And more: http://www.flashkit.com/cgi-bin/movies/search.cgi?query=mail+cgi

My short experience with ASP was OK. It' not that hard but not nearly as nice as PHP. Checkout these open source which deal with ASP and Flash forms:
http://www.flashkit.com/movies/Interfaces/Forms/Asp__Fl-FARRUNG-3089/index.shtml
http://www.flashkit.com/movies/Interfaces/Forms/Simple_F-Chris_So-3255/index.shtml

Cheers

Jesse

poindexter
01-08-2001, 07:05 AM
Well.... I managed to get it working - sort of.

I'm using CGI and when I tested it locally it worked fine. I had a problem with this giant white page appearing after the info was sent. (THANK YOU FOR FILLING OUT THIS FORM, bla bla bla -- a standard form I suppose) I managed to work around it and I thought all was well.

However, after I uploaded the files to the server I wasn't receiving any email after the form was filled out. I made some changes but that giant white page is back. I don't want that to happen... boo hoo!

This is the way I have it set up. After the user hits the SUBMIT button the movie plays past a keyframe that loads a Javascript popup and then hits a keyframe with this action in it:
Get URL ("http://www.cadvision.com/cgi-bin/formmail", vars=GET) I had it working before using the load variables feature but that is no longer sending any email to me.

Any ideas? Here's the URL if you want to see it in action
http://www.nerdfactory.com/acadsa/

Any help would be appreciated!

Jesse
01-08-2001, 11:36 PM
Well your script is working fine. (Nice site by the way). I get
"Below is what you submitted to stev...
Name: Jesse
Comment: This is a test"

If you're not actualyl recieving the email check that you have permission to use SENDMAIL on your server. The email addy seems to be configure correctly.

Cheers

Jesse

poindexter
01-08-2001, 11:44 PM
Thnaks for replying again. I did receive the email fine, but were you re-directed to that big white page?

I need to figure out how to stop that from happening.

Jesse
01-09-2001, 12:30 AM
Oh I see. Yes I was redirected. And LoadVariablesNUM wont succefully run the CGI?

Perhaps edit the source of the CGI and add a 0 second META refresh tag so that the blank white page redirects to something else again.
That's all I can suggest.

Cheers

Jesse

poindexter
01-09-2001, 12:58 AM
"And LoadVariablesNUM wont succefully run the CGI?"

Could you explain this further? Sorry to be such a pest about this. This is the first form I've set up and it's become quite a challenge.

Jesse
01-09-2001, 07:47 AM
Well, when interacting with CGI and PHP in my own works, I use LoadVariablesNume rather than GetURL as it allows my user to stay in my flash file.... The syntax is just the same:

Get URL ("http://www.cadvision.com/cgi-bin/formmail", vars=GET)

but instead of GetURL you use LoadVariables...

Good luck

Cheers

Jesse