Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2014
    Posts
    44

    Unanswered: Passing php variable to another page for processing

    Hi, I have a question regarding my problem. I have this php page that i want to send the $row[HEADMARK] and $row[ID] into another page for processing the update into my database. I dont know how to approach this kind of method with the jquery. Please help me...

    PHP Code:
    <!-- ================================================================================ -->
    <!-- ================================================================================ -->
    <!DOCTYPE html>
    <html>
        <head>
            <!-- <link rel="stylesheet" type="text/css" href="../css/showFab.css"> -->
            <link rel="stylesheet" type="text/css" href="../css/fabUpdateStyle.css">
            <link rel="stylesheet" type="text/css" href="../css/jquery-labelauty.css">
            
            <script type = "text/javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
            <script type = "text/javascript" src = "../js/jquery-labelauty.js"></script>
            <script type = "text/javascript">
             
            $('.cuttingCheckbox').change(function() {
                 if (this.checked) {
                   this.setAttribute("disabled", true);
                 } 
               });
               
            $('.assemblyCheckbox').change(function() {
                 $(":checkbox").labelauty();
                 if (this.checked) {
                   this.setAttribute("disabled", true);
                 } 
               });
            
            $('.weldingCheckbox').change(function() {
                 if (this.checked) {
                   this.setAttribute("disabled", true);
                 } 
               });
                  
            </script>       
        </head>
    <!-- ================================================================================ -->
    <!-- ================================================================================ -->
        <?php                
            
        
    // IF SHOW KEY HAS BEEN PRESSED
        
    if($_POST['action'] == 'show')
            {            
            
    $sql   "SELECT * FROM SUB_MASTER_DRAWING
                              WHERE SUB_MASTER_DRAWING.HEAD_MARK = '
    {$_POST["hm"]}'";
                              
            
    $query oci_parse($conn$sql);
                    
    $query_exec oci_execute($query);
                    
                   
            while(
    $row oci_fetch_assoc($query)){
                          echo 
    "<table border='1'>";
                                echo 
    '<table cellspacing = "0"';
                                    echo 
    '<thead>';
                                    echo 
    '<tr><th>Head Mark</th>
                                              <th>Cutting</th>
                                              <th>Assembly</th>
                                              </tr></thead>'
    ;
                                    
                                    echo 
    "<tbody>";
                                    echo 
    "<tr><td><b>$row[HEAD_MARK]/$row[ID]</b></td>";
                                                
                                              if (
    $row['CUTTING'] == 'Y'){                                   
                                                  echo 
    "<td><input type='checkbox' id='cuttingCheckbox'  name='cuttingCheckbox' checked='checked' disabled='disabled'/></td>";
                                              } else {
                                                  echo 
    "<td><input type='checkbox' class='cuttingCheckbox'  name='cuttingCheckbox' data-labelauty='Cutting done|Cutting NOT done'/></td>";
                                              }   
                                              
                                              
                                              if (
    $row['ASSEMBLY'] == 'Y'){                                   
                                                  echo 
    "<td><input type='checkbox' id='assemblyCheckbox'  name='check' checked='checked' disabled='disabled'/></td>";
                                              } else {
                                                  echo 
    "<td><input type='checkbox' class='assemblyCheckbox'  name='check' /></td>";
                                              }   
                                              
                                              echo 
    "</tr>";   
                                              echo 
    "</tbody>";
                                    echo 
    "<table cellspacing = '0'";
                    }
            echo 
    "</table>";
         }
    //===> END OF 'SHOW'
    ?>
    </html>

  2. #2
    Join Date
    Sep 2009
    Location
    Ontario
    Posts
    1,057
    Provided Answers: 1
    Make them hidden input fields.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •