You should really separate the header printing process from the HTML
printing process. The first thing you want to do is tell the browser that
HTML is coming, -then- write the HTML. A couple different ways of
accomplishing this:

use CGI;
$q = new CGI;
print $q->header;

        or

print "Content-type: text/html\n\n";

The first option is the preferred method, as you can easily add more
arguments to the header block. Do a 'perldoc CGI' for the documentation. If
you decide to use the second method because it seems easier to you for one
reason or another, make sure that you get the case, punctuation, and spacing
correct.

-----
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]



-----Original Message-----
From: Ramon Hildreth [mailto:ramon@;ramonred.net]
Sent: Saturday, November 02, 2002 2:49 PM
To: [EMAIL PROTECTED]
Subject: Form-mail blues


Hi, I don't have access to the error logs on my hosting account, and I
am trying to troubleshoot  formail script. It runs okay from the
commandline. It also sends the info collected in the form correctly to
the email address I have specified.

It also gives internal server error. I am guessing that this part of the
script is making the trouble, but I don't know what it could be.
-----

Use CGI qw(:standard);

------
#show thank you screen

print header <<"EOF";

<HTML>
<HEAD>
<TITLE>Thank You</TITLE>
</HEAD>

<BODY>

<H1>Thank You for your submission</H1>
<p>return to
<a href="http://www.subudusa.org/concept.html";>Subud Enterprises
Services</a>.</p>

</BODY>
</HTML>
EOF
---

TIA.

Ramon Hildreth
---------------------------------------------------------------
[ www.subudusa.org ] [www.subudseattle.org
                [ www.ramonred.net ]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to