Re: Auto Convert formmail to HTML?

by "Martin Clifford" <MLC1(at)nrc.gov>

 Date:  Tue, 11 Jun 2002 11:22:32 -0400
 To:  <ts(at)awebresource.com>,
<hwg-techniques(at)hwg.org>
  todo: View Thread, Original
PHP provides a great interface for just this kind of thing.  Basically, =
set up your form like this:

<form name=3D"template" action=3D"process.php" method=3D"post">
Title of Page: <input type=3D"text" name=3D"pageTitle" /><br />
First Paragraph: <textarea cols=3D"50" rows=3D"80" name=3D"firstPara">Para =
Here</textarea><br />
</form>

Then, in process.php, all you have to do is this:

<?php

echo "<html>\n";
echo "<head><title>$pageTitle</title></head>\n";
echo "<body>\n";
echo "<h2>$pageTitle</h2>";
echo "<p>$firstPara</p>";

?>

That type of thing.  If you need help setting it up, I'll be glad to :o)

Martin

>>> Tenley Shewmake <ts(at)awebresource.com> 06/11/02 12:32PM >>>
Hi All,

I have set up an online form for a client to use to describe new items=20
to add to his website.

I'm looking for a some way (maybe a cgi script?) to automatically =
format=20
the results into HTML. The pages for each item are identical in=20
formatting and I'm bored with this cutting and pasting into a template.=20
I'm not a programmer, and am limited to simple script editing...

Resources, suggestions welcome.
--=20
Best Regards,

Tenley

Tenley Shewmake, Webmaster Alterra Furniture
http://www.awebresource.com/furniture/=20
ts(at)awebresource.com=20

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