Forum Moderators: mack
i very new to this game. i've manage to build me a page and do some things that even amazed me. i'm haveing trouble with my submit button. how do i get it to send me the info typed to my email. i'm using dreamweaver 4. i found a script but where do i insert it? do i go to 'edit tag' or what. this was the script they send me.
<form action="/cgi-sys/cgiemail/template.txt" method="post" name="order"> <input name="success" type="hidden" value=http://www.yourdomain.com/confirm.htm>
thanks,
ripley
will send the form output to your email address. Note that some versions of AOL have trouble with a "mailto:" URL.
You might find a Perl script that you can dump on your server to handle this, however most of them are well-known by script-kiddies and other punks, and have been hacked long ago.
An example of this is the old "formmail.pl" script that would do exactly what you want...if it hadn't been so thoroughly compromised by hacker hits.
The preferred method of handling form data is to dump it into a database of some kind and view the data from there. Example databases might include MySQL, "flat file" databases like text files and Berkely DB. You instruct the script to store your form data in one of these databases, then look at the database to see what you've got. Much more secure than using a script to send email, but also not as simple.
<sigh>
There was a similar question not long ago which might help you out:
[webmasterworld.com...]
StupidScript is right about the old formmail script - it was a spammers paradise - but the NMS-Formmail script is in a different league and is very easy to set up.
The problem about using mailto: is that you can't be sure it's going to work - there are compatibility problems with AOL and other setups too. It is always best to use a server-side script (suitably locked-down) to ensure delivery.