Maybe I'm weird here but it seems that such simple pages (ie. with just a vehicle, small info, small pic, etc.) would be good to make dynamically... instead of OPENing CAR and PRINTing to it as described above, make a separate cgi script or just a separate section of your original which tests the name/value of your submit button (which called the script in the first place)... this way, the default script could list all vehicles available and print them as a table or whatever (make sure to include all relevant info in the line item for each)... then on the list page, instead of just a simple link, each would have it's own submit button or graphic something like:
<form action="/cgi-bin/$NameOfYourScript.cgi"> <input type="hidden" name="WhichOne" value="97FordMustang"> <table><tr><td>YEAR<td>MAKE<td>MODEL<td>PRICE<td>GRAPHIC<td>ETC.<td>DE +TAILS <tr><td>97<td>Ford<td>Mustang<td>$17000<td>IMG tag goes here <td>etc...<td><input type="submit" name="Detailed" value="Show Det +ails"> </table></form>
I don't know of a script to do similar stuff automatically for you... I know what I've described is probably more work but then you won't have to worry about managing a million html files all over the place (and designing some filing scheme for them etc.) ... and you can make simple changes to the table layout, colors, graphics, etc. and all of them will immediately propagate to every page viewed off a submission from there on without having to create a ton of tiny pages again either. If I haven't described this clearly enough, I apologize. Just ask and I'll try to clarify if someone else doesn't beat me to it. TTFN & Shalom.

-PipTigger

In reply to Re: making pages? by PipTigger
in thread CGI list of links to record details from flat-file database by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.