PDA

View Full Version : Needing CGI Help for NS 4 . . . .


Rockrz
03-21-2002, 07:29 AM
I'm the proud owner of a CGI form set up that works (my first...yippeee), But as usual there's always a kink in good things. My form isn't working in NS 4 (I always test in NS 4, since there's still a few folks using that old browser, plus if it works there it should work in anything)

The problem is that when I attempt to sumit the form in NS, it goes to http://www.austinsings.com/scripts/formmail.pl (that's what actually shows in the address bar), instead of my thank you page, and I never get the message.

I'm wanting to know if my problem is in my HTML form, or if it's in the form mail script (I got that from http://nms-cgi.sourceforge.net/ )

Here's the URL of my form page:
http://www.austinsings.com/emaillist.html

Here's my form script
<FORM ACTION="http://www.austinsings.com/scripts/formmail.pl" METHOD="post">
<INPUT TYPE="hidden" NAME="recipient" >
<INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.austinsings.com/thankyou_emailsignup.html">
<TABLE border="0" width="70%">
<TR><TD ALIGN="CENTER"><FONT FACE="arial,helvetica" COLOR="#ffff00" SIZE="2">

<B>Your Name</B>
<INPUT TYPE="hidden" VALUE="From_Name">
</FONT></TD>
<TD><FONT FACE="arial,helvetica" COLOR="#ffff00" SIZE="2">
<INPUT SIZE="32" name="Sent by">

</FONT></TD></TR>
<TR><TD ALIGN="CENTER"><FONT FACE="arial,helvetica" COLOR="#ffff00" SIZE="2">
<B>Your E-mail Address</B>
<INPUT TYPE="hidden" VALUE="From_Email">
</FONT></TD>
<TD><FONT FACE="arial,helvetica" COLOR="#ffff00" SIZE="2">
<INPUT SIZE="32" name="email" >

<INPUT TYPE="hidden" VALUE="From_Email">
</FONT></TD></TR>
<INPUT TYPE="hidden" NAME="subject" VALUE="E-mail List - Signup">
</TABLE>
<INPUT TYPE="submit" VALUE="Sign Up Now!" style="FONT-WEIGHT: bold; BACKGROUND: yellow; COLOR: red; FONT-VARIANT: normal"></FORM></form>

kevin
03-21-2002, 12:45 PM
Netscape maybe will not process an input tag without a specified type, usually if there is no type attribute it defaults to being text, but maybe older Netscape browsers will not do that. Add the correct type attribut to these two lines and see if that helps:

<INPUT SIZE="32" name="Sent by">
<INPUT SIZE="32" name="email">

you only need this tag once, you have it three times in your form code for some reason, and it has no name attribute to distinguish it from other input tags so its doubtful the script can do anything with it:

<INPUT TYPE="hidden" VALUE="From_Name">

you also have an extra closing form tag on the end for some reason, will not hurt anything but I would remove it:

</FORM></form>

Rockrz
03-21-2002, 04:56 PM
OK. Thanks for the info....

I kinda figured it was something I had done wrong, so I'll try your suggestions & see what happens.

Also, I put the script I'm using up on a webpage at: http://km.home.texas.net/cgi_project.html

Thanks again for the info,