PDA

View Full Version : Formmail Problem.


Damon
08-18-1999, 10:22 AM
Hi folks,

Here's my problem...

I've built my form, but I don't think I've done it correctly. My Action item looks like this:

<form action=&quot;/cgi-sys/mailform&quot; method=&quot;post&quot;>

When I visit other sites, their form's Action items looks different:

<form method=&quot;POST&quot; action=&quot;http://209.197.118.60/cgi-bin/all_sub_prwn.pl&quot;>

or...

<FORM METHOD=&quot;POST&quot; ACTION=&quot;http://www.mail-list.com/cgi-bin/signup.cgi&quot;>

or...

<form action=&quot;http://e-newsletters.internet.com/cgi-bin/newslinx.form&quot; method=&quot;post&quot;>

In other words, they all end with a &quot;.cgi&quot; &quot;.form&quot; &quot;.pl&quot; etc.

Any ideas what I'm doing wrong?

Thanks for any information you can provide.

Damon G. Zahariades

elite
08-18-1999, 10:32 AM
I would use your domain in it and try that here is what you should have, substituting &quot;http://www.yourdomain.com&quot; with your domain. :

<form ACTION=&quot;http://www.yourdomain.com/cgi-sys/mailform&quot; METHOD=&quot;POST&quot;>
<!-- NO_AUTO_LINK -->
[This message has been edited by elite (edited 08-18-99)]

Rich
08-18-1999, 02:26 PM
Damon:

If your script runs, you've done it correctly. :)

How the action argument is specified depends on where the script is located and what it is named. Specifying /cgi-sys/mailform runs the FutureQuest standard mailform located in the /cig-sys directory. The filename is 'mailform' without any extension.

When you see a reference to /cgi-bin/somescriptname or http://whatever/cgi-bin/somescriptname, the scripts are located in the hosted domain's cgi-bin directory. These scripts were installed by the site owner's.

Many scripts will have either a .pl or .cgi extension, but any extension is valid, including no extension at all.

Hope this helps.

Rich

Damon
08-18-1999, 08:54 PM
Thanks to both of you. I appreciate your willingness to offer your help.

Elite, I intend to use my domain to see if that resolves the issue.

Rich, you've given me a mini-education. I owe you one. <grin>

Damon