[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CGIWrap Error?



On Tue, 30 Jan 2001, H.P. Stroebel wrote:

> i don`t use/know formmail. does it use templates stored in the user`s
> directory ?

frommail makes use of variables passed to it from the .html page that
calls the script.

ala

<FORM METHOD="POST" action="http://www.yourdomain.com/cgi-bin/formmail.pl";>
<input type="hidden" name="recipient"
value="baltimoremd@xxxxxxxxxxxxxxx">
<input type=hidden name="subject" value="Hosting Order">
<input type=hidden name="title" value="Thank you for your Order">
<input type=hidden name="required"
value="Email,Realname,Phonecall,Logon,Password,Payplan,Frontpage,Domain,Register,Street,City,State,Zip,Country">
<input type=hidden name="print_config" value="Email,Realname">

It does have an interesting line of code that may be of interest
in reference to what can call the script.

# @referers allows forms to be located only on servers which are defined
#
# in this field.  This security fix from the last version which allowed
#
# anyone on any server to use your FormMail script on their web site.
#

@referers = ('yourdomian.com,'xxx.xxx.xxx.xx');


Thom