Page 252 - DCAP402_DCAO204_DATABASE MANAGEMENT SYSTEM_MANAGING DATABASE
P. 252

Unit 14: Application Development and Administration




          $requestType = $dataIn->param(‘requestType’);                                         Notes
          $sql = $dataIn->param(‘sql’);
                 # Next we will check to see
                 # if there is a value coming

                 # in from a form for the
                 # variable “sql”. If there
                 # is no value, then we know
                 # that the user has not yet

                 # seen the submission form.
                 # In that case, we will send
                 # them the HTML form so they
                 # can actually submit a value

                 # for “sql”. The following
                 # screen shot shows you what
                 # will be returned.




















          if ($sql eq “”)
          { print qq!
          <HTML>

          <HEAD>
          <TITLE>Enter
          SQL</TITLE>
          </HEAD>

          <BODY BGCOLOR = “#FFFFFF”
                                              TEXT = “#000000”>
          <FORM METHOD = “POST”
                 ACTION = “dbi_demo.cgi”>





                                           LOVELY PROFESSIONAL UNIVERSITY                                   245
   247   248   249   250   251   252   253   254   255   256   257