Re: Multiple Forms on One Website

by "Darrell King" <darrell(at)webctr.com>

 Date:  Sat, 22 May 2004 16:40:32 -0400
 To:  <hwg-techniques(at)hwg.org>,
"R & L Rasmussen" <ideas(at)cfl.rr.com>
 References:  rr
  todo: View Thread, Original
You are using the term "form" but referring to the CGI script, so I want to
be sure we aren't confusing things.

1) You can run as many forms as you wish through only one copy of Matt's
FormMail.  Simply set up the forms in your site, letting them all use the
same URL in the action attribute of the form tag.  Unless you have a
specific reason for using several Perl scripts, it's just complicating your
life to do so.

2) Matt's FormMail is a popular target of hijackers. It's possible that some
restriction on your server is at the bottom of your headache - some servers
place special rules for this script because it is so commonly used by
Spammers to send huge volumes of email without the site owner's knowledge.

3) Keeping #2 in mind, there is no general reason why you can't run as many
scripts as you wish on the site, each handling one or more forms.  Be sure
to a) set your permissions correctly (Perl scripts have to be 0755 on most
servers) and b) upload your scripts in ASCII format, not Binary.  Each of
these gotchas is a common mistake for people first learning to work with
Perl.


I hope this helps - without specific information regarding how your
experiments are failing, I had to guess at the problems. Just to reiterate,
however: your basic premise is correct.  You can, indeed, run as many copies
as you wish.

D

----- Original Message ----- 
From: "R & L Rasmussen" <ideas(at)cfl.rr.com>



Hello,

I am having trouble configuring the server and/or the form *name* (pl) to
allow me to place two different cgi scripts
and html forms on the same Website.  Have never had to do this before and
simply assumed (using Matt's form script) that I
could simply rename the second form (FormMail2.pl) and/or put in a second
cgi-bin2 directory on the server.  I've tried
all variations of this and the second form will not process
correctly.  Double-checked name compatibility with
the html form "action" and all is correct - path is right.

Firstly, can two separate forms run on the same Website?  I simply assumed
yes.

If so, can you tell me the steps/tricks to configure.  For me, simply
renaming the second cgi form script
and correlating it to the form "action"  and placing it in the cgi bin is
just not working.

If you prefer to reply privately, please do:  ideas(at)cfl.rr.com

TIA,
Ralph Rasmussen

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.