dpepper
11-12-2007, 01:59 PM
Hi, I tried to adapt a redirect script from this post
http://www.webdeveloper.com/forum/showthread.php?t=29272&highlight=%22redirect+formmail%22
If it sent me mail it didn't redirect, if it redirected it went to a 404 page and sent no email.
The reason the script looks so goofy is I tried every method they suggested and none worked. I've tried for 1 1/2 to figure this out much easier to do this before the car accident.
This is what I would like to do if someone could help, I would like to ask a series of questions for simplicity sake two. I don't need the form to send me an email.
I will have an autoresonder on the page I refer them too according to their choice, this way I will know that they truly want the information from me.
What is you favorite hobby?
radio button Fishing
radio button Hunting
When they click one of the buttons I would like them to be redirected to either a page on my site or possibly another domain.
Can some one help me please.
PS when I had the mailto: included no redirection, take it out 404. I made several different .html trials using variations this is the final one.
<html>
<head>
<title>testmailr</title>
</head>
<body style="background-color: white;">
<form method="post" action="myemail@gmail.com">
<input name="redirect" value="URL.com" type="hidden"><input
name="recipient" value="me@mydomain.com" type="hidden">What
is your favorite color? <br>
Fishing: <input name="Hobby" value="fishing"
onclick="if(this.checked){this.form.redirect.value=this.value+'http://www.dpcomputerproducts.com/cbmall.html';}"
type="radio"><br>
Hunting: <input name="Hobby" value="hunting"
onclick="if(this.checked){this.form.redirect.value=this.value+'cbmall.html';}"
type="radio"><br>
Hunting: <input name="Hobby" value="hunting"
onclick="if(this.checked){this.form.redirect.value=this.value+'www.huntingnet.com';}"
type="radio"><br>
Red: <input name="Hobby" value="red"
onclick="if(this.checked){this.form.redirect.value='../'+this.value+'../cbmall.html';}"
type="radio"><br>
<input name="Submit" value="Submit" type="submit"></form>
</body>
</html>
Thank you
Sincerley,
Dolores
http://www.webdeveloper.com/forum/showthread.php?t=29272&highlight=%22redirect+formmail%22
If it sent me mail it didn't redirect, if it redirected it went to a 404 page and sent no email.
The reason the script looks so goofy is I tried every method they suggested and none worked. I've tried for 1 1/2 to figure this out much easier to do this before the car accident.
This is what I would like to do if someone could help, I would like to ask a series of questions for simplicity sake two. I don't need the form to send me an email.
I will have an autoresonder on the page I refer them too according to their choice, this way I will know that they truly want the information from me.
What is you favorite hobby?
radio button Fishing
radio button Hunting
When they click one of the buttons I would like them to be redirected to either a page on my site or possibly another domain.
Can some one help me please.
PS when I had the mailto: included no redirection, take it out 404. I made several different .html trials using variations this is the final one.
<html>
<head>
<title>testmailr</title>
</head>
<body style="background-color: white;">
<form method="post" action="myemail@gmail.com">
<input name="redirect" value="URL.com" type="hidden"><input
name="recipient" value="me@mydomain.com" type="hidden">What
is your favorite color? <br>
Fishing: <input name="Hobby" value="fishing"
onclick="if(this.checked){this.form.redirect.value=this.value+'http://www.dpcomputerproducts.com/cbmall.html';}"
type="radio"><br>
Hunting: <input name="Hobby" value="hunting"
onclick="if(this.checked){this.form.redirect.value=this.value+'cbmall.html';}"
type="radio"><br>
Hunting: <input name="Hobby" value="hunting"
onclick="if(this.checked){this.form.redirect.value=this.value+'www.huntingnet.com';}"
type="radio"><br>
Red: <input name="Hobby" value="red"
onclick="if(this.checked){this.form.redirect.value='../'+this.value+'../cbmall.html';}"
type="radio"><br>
<input name="Submit" value="Submit" type="submit"></form>
</body>
</html>
Thank you
Sincerley,
Dolores