First: are you certain that the values are getting to the Perl script from
the form (I'm assuuming it's a separate file). I ask because I had this
problem last week; I wasn't properly extracting the parameters (using the
param function in CGI.pm), and it was happily supplying me with nulls in its
effort to cooperate.
Insert some print statements to display the data just to be sure.
I also had problems forgetting to encode some of my data (passed from
previous forms) in hidden fields, so it had a way to GET to the perl script.
Anyway, those were MY brain farts. You may have been smart enough to figure
those out already.
> -----Original Message-----
> From: David Draley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 2:16 PM
> To: [EMAIL PROTECTED]
> Subject: perl help!!
>
>
> is there a way to call a perl sub routines using a FORM when
> a "submit"
> button is clicked?
>
> I am trying to push data to a mySQL database table and when my form is
> loaded into the browser or is "refreshed" the browser runs
> through my cgi
> script and pushes "null" values to the table. Once the form
> is filled and
> the user clicks the form "submit button" the form works and pushes the
> correct values.
>
>
> thanks
> david
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>