Advertisement

03.19.2008 at 07:50PM PDT, ID: 23255814
[x]
Attachment Details

cgi form - on submit redirect to html page

Asked by webdott in CGI Scripting, JavaScript

Tags: cgi, ie

hi,

I have a cgi form. The form is thru my hosting which uses, Matt Wrights form mail.

I can get the form to work and submit the info, the only issue is that when the form
is submitted, I want the user redirected to a thank you page. Instead, the form goes
to www.goviewmy.com/cgi-bin/formail

How do I redirect to a page on clicking the submit form?

Here is the code.

<FORM ACTION="/cgi-bin/formmail" METHOD="POST">
        <INPUT TYPE=HIDDEN NAME="recipient" VALUE="sales@goviewmy.com">
         <INPUT TYPE=HIDDEN NAME="redirect" VALUE="www.goviewmy.com">
          <CENTER>
           <P ALIGN=CENTER>
            <TABLE CELLPADDING="2" CELLSPACING="0" BORDER="0">
             <TR>
              <TD COLSPAN="2" VALIGN=TOP>
               <P ALIGN=CENTER>
                <FONT FACE="Verdana"><B><FONT SIZE="3">Visitor Feedback</FONT></B></FONT></TD>
             </TR>
            </TABLE></P>
           </CENTER>
          <CENTER>
           <P ALIGN=CENTER>
            <TABLE CELLPADDING="2" CELLSPACING="0" BORDER="0">
             <TR>
              <TD VALIGN=TOP>
               <P ALIGN=RIGHT>
                <FONT FACE="Verdana"><FONT SIZE="2">Your name:</FONT></FONT></TD>
              <TD VALIGN=TOP>
               <DIV>
                <P ALIGN=LEFT>
                 <INPUT TYPE=TEXT NAME="aaName" SIZE="40" MAXLENGTH="125"></TD>
             </TR>
             <TR>
              <TD VALIGN=TOP>
               <P ALIGN=RIGHT>
                <FONT FACE="Verdana"><FONT SIZE="2">Your email:</FONT></FONT></TD>
              <TD VALIGN=TOP>
               <DIV>
                <P ALIGN=LEFT>
                 <INPUT TYPE=TEXT NAME="abClientEmail" SIZE="40" MAXLENGTH="125"></TD>
             </TR>
             <TR>
              <TD VALIGN=TOP>
               <P ALIGN=RIGHT>
                <FONT FACE="Verdana"><FONT SIZE="2">Comments:</FONT></FONT></TD>
              <TD VALIGN=TOP>
               <DIV>
                <P ALIGN=LEFT>
                 <TEXTAREA NAME="acComments" COLS="40" ROWS="5"></TEXTAREA></TD>
             </TR>
             <TR>
              <TD VALIGN=TOP>
               <P ALIGN=LEFT>
                &nbsp;</TD>
              <TD VALIGN=TOP>
               <CENTER>
                <P ALIGN=CENTER>
                 <INPUT TYPE=SUBMIT VALUE="Submit"><INPUT TYPE=RESET NAME="xxClear" VALUE="Clear"></TD>
             </TR>
            </TABLE></P>
           </CENTER>
          </FORM>
Start Free Trial
 
Loading Advertisement...
 
[+][-]03.19.2008 at 07:52PM PDT, ID: 21167893

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: CGI Scripting, JavaScript
Tags: cgi, ie
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628