in reply to Re: trouble modifying add_record subroutine
in thread trouble modifying add_record subroutine

Thanks, Yes the data is coming from a web page. At this point I was only trying to use one checkbox. Using a checkbox just seemed better for the user interface. I have added these names "status","shift" to @fields as mentioned.

I am new to perl, what is the method param of object $q and how do I know If it is correct?
  • Comment on Re: Re: trouble modifying add_record subroutine

Replies are listed 'Best First'.
Re: Re: Re: trouble modifying add_record subroutine
by admiraln (Acolyte) on Sep 10, 2002 at 21:14 UTC
    Another asumption: The object that is in $q is an object created by one of the many CGI modules that exist. A well known one that I have used is CGI.pm by Lincoln Stein. http://stein.cshl.org/WWW/software/CGI/

    The syntax that is used as well as the name of the method "param" suggest it is CGI.pm.

    This method returns several items of in about the parameters submitted from a form including its values. Depending on how the object is created all of the parameters that are submitted will have values.