I followed Lee Brimelow's tutorial on Mail and PHP from flash but I have to say I followed it to a T and couldn't get it to work:
Some details. I created the PHP script in Dreamweaver and tried putting it in my cgi-bin at Network Solutions and to no avail. I also tried not putting it in their... didn't work either. I went looking for cgi scripts that would do the same, and things just don't work. I even tried doing it in html and keeping it simple. I did a query and found that Network Solutions is using Perl 5.006001. I guess I'm wondering if anyone has any experience with this. I searched the posts but to no avail. Lee mentioned that it would be easy to adapt but I don't know why I'm dying on this. I am thinking that one just places the correct script on the server and then calls to it from a html doc or a flash file. Network Solutions seems to recognize the php file as a script...should that run fine even though they run Perl... or do they have almost all technologies involved (i.e. .asp, .net, .php).
I would just like users to my site to be able to fill out a simple form and get their info in an email.
PHP is perhaps better considered as an alternative to CGI.
For your PHP code to run, you need your webhost to support PHP, and most likely (it depends on your webhost but most require this) you need to name your webpage whatever.php. Then the PHP mail script is part of the PHP page, and the host server executes it when called. No cgi-bin involvement, and no need for Perl.
Thanks for the feedback... do you think that for the beginner that PHP is better/easier. I called the domain provider and they said they have two envionments(servers). Unix and Windows It seems that CGI is supported on both but the windows server needs .ASP and .Net and runs windows MySQL, while the Unix server runs CGI and PHP and MySQL.
Does it make sense to migrate the site to the Unix server?
PHP will handle lots of web tasks (like yours) very well, and if you have some html coding background I think you'll find it not too tricky to pick up. Otherwise, there's a bit to go through to get started.
Perl / CGI is not something you'd want to take on from scratch without a programming background - but, as for PHP, there are lots of free scripts around which cover many regular tasks - you could maybe start at http://www.mattsscripts.co.uk/mattfm.htm
For now, I guess your issue is how to connect up a form to Flash: maybe have another real close look at Lee's tutorial, once you have had a little look at basic php?
For my $0.02, if there was not too much hassle involved I'd be choosing the Unix server every time; fast, reliable, more secure, and there lots of free tools and support going in the Unix world too.
Of course lots of people and businesses run sites successfully on Windows (if lots less than on Unix) if you prefer to go that way, and if you have spent time learning Front Page and the proprietary extensions it offers, then a Windows host could be a good idea.