ChrisRChamberlain
Programmer
Hi all
The following Form to E-mail script is the only CGI script of its type allowed by this particular ISP.
<html>
<head>
<title>Your title</title>
</head>
<body>
<form method="post" action="
<!--The title and URL of the form will be listed at the top of the e-mail-->
<input type="hidden" name="Form title" value="Source of form">
<!--Specify the e-mail address to which data from the form should be sent-->
<input type="hidden" name="SendMailTo" value="youremailname@btinternet.com">
<!--Specify the acknowledgement page to be seen by customers who have sent in the form-->
<input type="hidden" name="redirect" value="
<h1>Form title here</h1>
<p>explanatory text here</p>
<pre>
<b>Name</b>
<input name="Name">
<b>E-mail address</b>
<input name="E-mail address">
<b>Other info</b>
<input name="Other info">
<b>Description</b>
<textarea name="Description of pages" rows=5 cols=50></textarea>
<b>Radio buttons</b>
<input type="radio" name="year" value="1997"> 1997
<input type="radio" name="year" value="1996"> 1996
<input type="radio" name="year" value="1995"> 1995
<input type="radio" name="year" value="1994"> 1994
<b>Check boxes</b>
<input type="checkbox" name="category" value="choice A"> Choice A <input type="checkbox" name="category" value="choice B"> Choice B <input type="checkbox" name="category" value="choice C"> Choice C <input type="checkbox" name="category" value="choice D"> Choice D </pre>
<hr>
<center>
<input type="submit" value="Submit"> <input type="Reset" value="Start Again">
</center>
</form>
</body>
</html>
It submits standard user entered information back to the site owner.
What I would like to do is carry the 'E-mail address.value' and any other relevant values, (use cookies?), forward to the acknowledgement page and using
<meta http-equiv="refresh" content = "4; URL=
or similar, run the CGI script again but this time using values that say 'Thanks for subscribing...' etc, and substituting 'SendMailTo.value' with 'E-mail address.value'.
An alternative and possibly simpler option would be to run the script twice from the first page before going to the second.
Thus you will automatically respond to a request to subscribe to a mailing list, etc.
TIA
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
The following Form to E-mail script is the only CGI script of its type allowed by this particular ISP.
<html>
<head>
<title>Your title</title>
</head>
<body>
<form method="post" action="
<!--The title and URL of the form will be listed at the top of the e-mail-->
<input type="hidden" name="Form title" value="Source of form">
<!--Specify the e-mail address to which data from the form should be sent-->
<input type="hidden" name="SendMailTo" value="youremailname@btinternet.com">
<!--Specify the acknowledgement page to be seen by customers who have sent in the form-->
<input type="hidden" name="redirect" value="
<h1>Form title here</h1>
<p>explanatory text here</p>
<pre>
<b>Name</b>
<input name="Name">
<b>E-mail address</b>
<input name="E-mail address">
<b>Other info</b>
<input name="Other info">
<b>Description</b>
<textarea name="Description of pages" rows=5 cols=50></textarea>
<b>Radio buttons</b>
<input type="radio" name="year" value="1997"> 1997
<input type="radio" name="year" value="1996"> 1996
<input type="radio" name="year" value="1995"> 1995
<input type="radio" name="year" value="1994"> 1994
<b>Check boxes</b>
<input type="checkbox" name="category" value="choice A"> Choice A <input type="checkbox" name="category" value="choice B"> Choice B <input type="checkbox" name="category" value="choice C"> Choice C <input type="checkbox" name="category" value="choice D"> Choice D </pre>
<hr>
<center>
<input type="submit" value="Submit"> <input type="Reset" value="Start Again">
</center>
</form>
</body>
</html>
It submits standard user entered information back to the site owner.
What I would like to do is carry the 'E-mail address.value' and any other relevant values, (use cookies?), forward to the acknowledgement page and using
<meta http-equiv="refresh" content = "4; URL=
or similar, run the CGI script again but this time using values that say 'Thanks for subscribing...' etc, and substituting 'SendMailTo.value' with 'E-mail address.value'.
An alternative and possibly simpler option would be to run the script twice from the first page before going to the second.
Thus you will automatically respond to a request to subscribe to a mailing list, etc.
TIA
FAQ184-2483 - the answer to getting answered.
Chris ![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)