in reply to Why won't my form print to screen

your $dbh variable is not initialized. grep pointed indirectly to this. you can't call a method on an uninitialized variable. so that's the source of your error.(or maybe you don't have that error, and it's the source of *his* error)

there are a few other things:

$query->start_td(...) should be $query->td(...)
 print $query->end_html; appears more than once. surely you don't mean this...

i can't back grep's suggestions enough: Use strict warnings and diagnostics or die

~Particle ;Þ

Replies are listed 'Best First'.
Re: Re: Why won't my form print to screen
by gellyfish (Monsignor) on Mar 05, 2002 at 13:06 UTC

    your $dbh variable is not initialized.

    Yeah but neither does the code use DBI; or use CGI; so I would guess that we aren't seeing the whole thing ;-}

    /J\