Welcome to WebmasterWorld Guest from 126.96.36.199
best bet, from my experience, is to set up a serverside emailer (PHP or ASP both have free ones avail), and in that email script, redirect to the confirmation.
Better yet, do this:
' Pseudo code:
If request.querystring("action").value="email" Then
<form method="post" action="">
<input type="hidden" name="action" value="email">
<form name="form1" method="post" action="mailto:(snip)"
This kind of form using only a mailto: link won't work in newer browsers, including IE6, so you will need to use a formmail-type script (written in perl, php, ASP, or whatever) to send the information. There are loads of prewritten scripts available, and most of them allow you to define the confirmation page in a hidden field.
Oh yes, and welcome to WebmasterWorld infernofiasco! You should consider editing your post to remove your email address, as it is against the terms of service and, whats more, leaving it there would be a sure-fire way of getting an mailbox full of spam!
have a look here:
do i place the script in a cgi-bin directory beside my index file
It also might be neccessary to edit the "attributes" of the script executeables. The command is called "chmod" is available in most ftp-programs (check the context menu when you right click a file on the server). You need to get a chmod number of --> 755 <-- to not receive a server error when you call the page.
if with "index file" you mean your starting page like index.htm... -> that one should not go in a cgi-bin folder, but in the root or elsewhere.
This kind of form using only a mailto: link won't work in newer browsers, including IE6
...Using only a mailto: link won't work in..... whaat?
created a directory called cgi-bin on my ftp
Unless you are working in your own server environment (there is some more configuration neccessary to make that folder work) you should check your Web Hoster for an already existing cgi-bin directory. Usually hosters allow execution only in those predefined folders.
<input type="hidden" name="subject" value="enquiry from MCC Website">
<input type="hidden" name="recipient" value="email@example.com">
<input type="hidden" name="required" value="form1">
<input type="hidden" name="redirect" value="../confirm.htm">
i have typed this in my index.htm, do i need to declare the script anywhere in the html?
Other possibility could be using php which - again usually - is not restricted to run in a certain directory.
<form name="form1" method="post" action="">
Yes, the scripts (path and) name is the *action*, like action="/cgi-bin/mailerscript.pl".
Still, consider experimenting with that cgi/perl/php stuff - you won't believe what you can achieve with this so called "server-side-scripting". And it's rather easy too; check out some scripts, try to get them work, manipulate them to your desires...
Oh it ended up as: