PDA

View Full Version : Basic Formmail Question


klitland
03-17-2000, 06:25 PM
I've run into this before but can't remember the answer.[nbsp][nbsp]My formmail script returns with "...submitted by () on Friday, March 17, 2000... Any help in fixing this would be appreciated.

Dan Kaplan
03-17-2000, 06:48 PM
Have you defined the Name imput and made it required?

Name:[nbsp][nbsp]<input type=text name=&quot;realname&quot;>
<input type=hidden name=&quot;required&quot; value=&quot;email,realname&quot;>

(May differ depending on the formmail script you are using)

Disappear

klitland
03-17-2000, 06:57 PM
Thanks for the reply.[nbsp][nbsp]Interestingly enough my library (I'm a librarian) has one form that works fine.[nbsp][nbsp]I've poured over both sets of code and have worked with formmail in the past but I can't see the error.[nbsp][nbsp]Here's the script:

--------------------------
<form METHOD=POST ACTION=&quot;../../cgi-bin/FormMail.pl&quot;>

<input TYPE=HIDDEN NAME=&quot;recipient&quot; VALUE=&quot;jpbref@starbase1.htls.lib.il.us&quot;>

<input TYPE=HIDDEN NAME=&quot;required&quot; VALUE=&quot;e-mail-1,phone&quot;>

<input TYPE=HIDDEN NAME=&quot;redirect&quot;

VALUE=&quot;http://www.joliet.lib.il.us/answers3.html&quot;>

<input TYPE=HIDDEN NAME=&quot;missing_fields_redirect&quot;

VALUE=&quot;http://www.joliet.lib.il.us/answers2.html&quot;>

<input TYPE=HIDDEN NAME=&quot;env_report&quot;

VALUE=&quot;REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT&quot;>
--------------------------------

I think the problem might lie with the &quot;email-1&quot; value.[nbsp][nbsp]Should it just be &quot;email&quot;?[nbsp][nbsp]The person who put the form together just left us.

Dan Kaplan
03-17-2000, 07:32 PM
Is it the name or email that's not showing up in the () ?[nbsp][nbsp]Which ever one it is, making sure the name for that input area is the same as the name entered in the &quot;required&quot; field.[nbsp][nbsp]I imagine e-mail-1 would work, as long as it fits this criteria.

Dan