Forum Moderators: open
I have a form the hosting company gave me that signs up subscribers to a newsletter (which they also host) and I am trying to open a new page upon submission to track where subscribers come from and also allow them to download free software from the new window.
Currently the visitor is sent to a default "Welcome to My Newsletter" page upon submission of the form.
The problem is I don't have access to the cgi-bin on the server and I can't edit their default page. Is there some kind of javascript code or something I can do to achieve what I want to do?
Here is the code in it's current form:
<form action="http://www.mydomain.com/cgi-bin/mailing/mailer.cgi" method=post>
<input type="hidden" name="list_id" value="15">
<input type="hidden" name="action" value="subscribe">
<TABLE border="0" cellspacing="0" align="center" cellpadding="2" bgcolor="#FFFFFF"><TR><TD>
<TABLE cellpadding="4" cellspacing="0" border="0" bgcolor="#FFFFFF">
<TR align="center"><TD align="right" nowrap><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size="2">Enter Your E-mail Address
</FONT></B></TD><TD valign=top ><INPUT name="email" type="TEXT" size="30"></TD></TR>
<TR align="center"><TD align="right" nowrap><B>
<FONT face="Verdana, Arial, Helvetica, sans-serif" size="2">Enter Your First Name (optional)
</FONT></B></TD><TD valign=top><INPUT name="name" type="TEXT" size="30"></TD></TR>
<TR align="center"><TD valign=top colspan="2">
<INPUT type="SUBMIT" value="Click Here to Subscribe" name="SUBMIT"></TD>
</TR></TABLE></TD></TR></TABLE></form>
<form action="http://www.mydomain.com/cgi-bin/mailing/mailer.cgi" method=post>
<input type="hidden" name="list_id" value="15">
<input type="hidden" name="action" value="subscribe">
<INPUT type="hidden" name="redirect"
value="http://www.mydomain.com/thank-you.html">
<TABLE border="0" cellspacing="0" align="center" cellpadding="2" bgcolor="#FFFFFF"><TR><TD>
<TABLE cellpadding="4" cellspacing="0" border="0" bgcolor="#FFFFFF">
<TR align="center"><TD align="right" nowrap><B><FONT face="Verdana, Arial, Helvetica, sans-serif" size="2">Enter Your E-mail Address
</FONT></B></TD><TD valign=top ><INPUT name="email" type="TEXT" size="30"></TD></TR>
<TR align="center"><TD align="right" nowrap><B>
<FONT face="Verdana, Arial, Helvetica, sans-serif" size="2">Enter Your First Name (optional)
</FONT></B></TD><TD valign=top><INPUT name="name" type="TEXT" size="30"></TD></TR>
<TR align="center"><TD valign=top colspan="2">
<INPUT type="SUBMIT" value="Click Here to Subscribe" name="SUBMIT"></TD>
</TR></TABLE></TD></TR></TABLE></form>
Try that, and if it's not that, then you just can't redirect to another page on this host, apparently. Which is a crock....
Edit: after a bit more thought.... taking out the first line won't help, because it's the one which accessess your mailer program as provided by your host. And since you can't install anything else in the cgi-bin.... bottom line advice: find a different host....
These scripts work with most web hosts. Good luck with your site!