Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 14700

ERRO ao enviar parametro

$
0
0
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"

Código :
<!--   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>
                       

Viewing all articles
Browse latest Browse all 14700