Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2002, 11:31 PM   PM User | #1
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
Question How do I control redirects from <form> code?

I would like to use the following form code on my homepage for visitors to subscribe to my mailing list, but I cannot figure out how to get the redirect tag within, to either 1) default back to the homepage, or 2) redirect to a new browser window.

Here's the form code I am working with:

<form name="form1" method="post" action="http://www.cyberserious.com/cgi-bin/auto_followup.pl">
<font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Arial, Helvetica, sans-serif" color="#FF0000">Detective
Tips!</font><font face="Arial, Helvetica, sans-serif"> <br>
Receive FREE Valuable Tips<br>
on How to do Your Own<br>
Investigative Work Online!</font></b></font><br>
<input type="hidden" name="product" value="netdet">
<input type="hidden" name="remind" value="ON">
<input type="hidden" name="newsletter" value="ON">
<input type="hidden" name="redirect" value="http://www.cyberserious.com/thankyou.htm">
<br>
<b><font face="Arial, Helvetica, sans-serif">Your Name:</font></b><br>
<input name="name" size="15">
<font face="Arial, Helvetica, sans-serif"><b><br>
Your Email:</b></font> <br>
<input name="email" size="15">
<br>
<font size="2">
<input type="submit" value="Submit" style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt" name="submit">
</font> <br>
</form>

This code as it is here redirects to thankyou.htm

I tried changing the line:

<input type="hidden" name="redirect" value="http://www.cyberserious.com/thankyou.htm">

to

<input type="hidden" name="redirect" value="http://www.cyberserious.com"> but it still redirects to thankyou.htm.

I also tried this:

<input type="hidden" name="redirect" value="http://www.cyberserious.com/thankyou.htm" target="new">

to see if that would redirect thankyou.htm to a new browser window, but the target="new" apparently doesn't work with redirects.

Fred
Fred is offline   Reply With Quote
Old 12-06-2002, 12:07 AM   PM User | #2
MrDoubtFire
New Coder

 
Join Date: Dec 2002
Location: Florida
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
MrDoubtFire is an unknown quantity at this point
Quote:
1) default back to the homepage, or 2) redirect to a new browser window.
To 1)
<input type="hidden" name="return_link_title" value="Back to Main Page" >
<input type="hidden" name="return_link_url" value="" >


I don't think 2) is possible.

MrDoubtFire
__________________
[ Digapay | $2 PER Email | Free Email | Design ]
MrDoubtFire is offline   Reply With Quote
Old 12-06-2002, 12:45 AM   PM User | #3
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
Sorry, but it didn't work.

I think the problem might be that I cannot control the redirect from the form code on the page. The redirect to thankyou.htm is set up in the script. The problem is I really need to be able to customize this function, because I want to use this same form both in a popup window and on my homepage, but I don't both of them redirecting to the same page.

Maybe I am attempting the impossible
Fred
Fred is offline   Reply With Quote
Old 12-06-2002, 01:59 AM   PM User | #4
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
If you don't have access to the perl script, then just create a javascript and/or metatag redirect code to work straight away on the thankyou page

<script>
document.location='http://yoursite.com';
</script>
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 12-06-2002, 02:42 AM   PM User | #5
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
I do have access to the pl script. It's AutoFollowup autoresponder script. There is a block provided for the redirect link, where I have /thankyou.htm. Maybe if I try removing and leaving it blank, that might give me more custom control of redirects from the HTML code.
Thanks,
Fred
Fred is offline   Reply With Quote
Old 12-06-2002, 06:58 PM   PM User | #6
Fred
New Coder

 
Join Date: Nov 2002
Location: Florida, USA
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Fred is an unknown quantity at this point
problem fixed

The problem is now fixed. I emailed Jason Silver of crookedbush.com, the author of Auto Followup and he gave me a fix for it.
Fred
Fred is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:35 AM.


Advertisement
Log in to turn off these ads.