dance621
11-10-2006, 12:52 AM
Hi, I am a new guy here but wondering if anyone can help. I need to redirect users to a page based on the valua of a variable. ie if the variable is "widgit.com/moreinfo1.htm" then they get rediected there. The variable changes based on several onclicks on the page. The variable is not the problem. I am just not sure how to insert it into the form code.
Here is my rather feeble attempt so far...
In the header..
<SCRIPT LANGUAGE="JavaScript">
var goforward = 'http://widgit.com/info1.htm';
</SCRIPT>
In the body...
<TD><form name="calc2" method="POST" action="http://fp1.formmail.com/cgi-bin/fm192">
<input type="hidden" name="_pid" value="51921">
<input type="hidden" name="_fid" value="AIE25230">
<input type="hidden" name="recipient" value="1">
<input type="hidden" name="Title">
<input type="hidden" name="redirect" value=goforward>
I also tried putting speech marks etc around the goforward eg value='goforward' or value="goforward".
Anyone help? Thanks, James
Here is my rather feeble attempt so far...
In the header..
<SCRIPT LANGUAGE="JavaScript">
var goforward = 'http://widgit.com/info1.htm';
</SCRIPT>
In the body...
<TD><form name="calc2" method="POST" action="http://fp1.formmail.com/cgi-bin/fm192">
<input type="hidden" name="_pid" value="51921">
<input type="hidden" name="_fid" value="AIE25230">
<input type="hidden" name="recipient" value="1">
<input type="hidden" name="Title">
<input type="hidden" name="redirect" value=goforward>
I also tried putting speech marks etc around the goforward eg value='goforward' or value="goforward".
Anyone help? Thanks, James