Jump to content

Recommended Posts

Posted (edited)

Alguém me pode ajudar, não consigo perceber porque quando faço o remover "Dificuldade", não esá a enviar o "DificuldadeID" como parametro e

envia o "SeniorID"

<!--   dificuldade     -->

   <?php if (!$nr_dificuldade) {
            echo "Sem valores!!";
        }
        else {
        ?>

           <table border="1">
               <thead>
                   <th>dificuldade</th>
               </thead>
                   <?php
                   $linhadificuldade_senior = mysqli_fetch_assoc($resultdificuldade_senior);
                   Do {
                   ?>
                   <tr>
                       <td><?php echo $linhadificuldade_senior['dificuldade']; ?></td>
                           <td><a href="rem_dificuldade.php?DificuldadeID=<?php echo $linhadificuldade_senior['DificuldadeID'] . "&seniorid="; echo $linhadificuldade_senior['seniorid'];?>"><img src="remover.png"/></a></td>
                   </tr>
           <?php } while ($linhadificuldade_senior = mysqli_fetch_assoc($resultdificuldade_senior)) ?>
           </table> <?php } ?>

            <form method="POST" action="dificuldade.php?seniorid=<?php echo $par_senior; ?>">
            Tem alguma dificuldade em termos de:<br>
           <table align="left"> 
               <tr>
                   <td><select name="dificuldade">
                   <?php while ($linhadificuldade = mysqli_fetch_assoc($resultdificuldade)) { ?>
                               <option value="<?php echo $linhadificuldade['DificuldadeID']; ?>" selected><?php echo $linhadificuldade['dificuldade']; ?></option>
                           <?php } ?></select></td>
               </tr>
               <tr>
                   <td><input type="text" name="senior" value="1" class="hide"></td>
               </tr>
               <tr>
                   <td><input type="submit" value="Inserir" name="submit"  /></td>
               </tr>
           </table>
       </form>

Edited by brunoais
geshi
Posted (edited)

A parte do codigo que dá o problema é esta:


       <td><?php echo $linhadificuldade_senior['dificuldade']; ?></td>
        <td><a href="rem_dificuldade.php?DificuldadeID=<?php echo $linhadificuldade_senior['DificuldadeID'] . "&seniorid="; echo $linhadificuldade_senior['seniorid'];?>"><img src="remover.png"/></a></td>

Edited by MaFotec

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.