*eyes fall out of head*

chaoticset on 2001-12-20T01:15:42

Okay, that's probably not good: Each entry shows up as a huge single table datum, and, worse, the page took about ten minutes to load processing a file with maybe two hundred lines in it. It *never* took that long before. I did sumpin' wrong here.

I think this

print Tr(td(center(
checkbox("want $_", "", "$_", ''),
"$_",
'$'."$cost.00",
textfield("quantity $_", "1", 3, 3,) ))); } }
is wrong, but I don't know precisely why. I'm thinking I've got to specify that it's list context, but I'm fuzzy on how to specify that. :\

Still worse, looking it over, it's fairly obvious that the script broke after a while. The page didn't finish, for one, and for two, it ignored the search term.

More rooting is needed...time well spent in the _Bookshelf_ can solve any problem.


Read the docs...

srushe on 2001-12-20T08:52:39

If you have a scan of the CGI docs for the few mentions of tables you'll find that you need to pass Tr an arrayref of tds. So Tr([ td( ) ])

As for center you could use Tr({-align=>CENTER}, ...

That might help. At this point it's traditional to mention, use strict and warnings!