in reply to trouble modifying add_record subroutine

I am assuming the data is comming from a web page. A few questions have to be asked before the question could be answered. Checkboxes imply a multiple valued result, is your result mulitvalued. If not the visual element you may want is a radio button. The obvious thing was mentioned in another comment that you should add the names to the list of fields
@fields =("first","last","position","email", "telephone","presider","status","shift");
This assumes that the method param of object $q will return the values for status and shift. There are a couple of other things to considier. The programs that read the database will have to be modified to handle the extra fields. Also the database will have to be updated to add the extra fields to the existing records.

Replies are listed 'Best First'.
Re: Re: trouble modifying add_record subroutine
by cal (Beadle) on Sep 10, 2002 at 18:31 UTC
    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?
      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.