Forum Moderators: mack

Message Too Old, No Replies

submit button script

hey i dont know jack....

         

ripley

2:09 pm on Jul 26, 2004 (gmt 0)

10+ Year Member



hey everyone. wasup?

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

StupidScript

7:32 pm on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<form action="mailto:you@youremail.com">

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>

encyclo

7:40 pm on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, ripley!

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.

Palehorse

6:30 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



Also, using mailto is a spammers paradise! Shortly after publishing any mailto the address in the code will get tons and tons of spam.

ripley

9:02 am on Jul 29, 2004 (gmt 0)

10+ Year Member



Thanks a lot guys. will try it out.