MaFotec Posted June 28, 2013 at 04:16 PM Report #516017 Posted June 28, 2013 at 04:16 PM (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 June 30, 2013 at 08:55 AM by brunoais geshi
HappyHippyHippo Posted June 28, 2013 at 04:23 PM Report #516022 Posted June 28, 2013 at 04:23 PM <form method="POST" action="dificuldade.php?seniorid=<?php echo $par_senior; ?>"> <!-- --> <select name="dificuldade"> <!-- --> </select> <!-- --> </form> estão os dois a serem enviados, estás a ler é o errado IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
MaFotec Posted June 29, 2013 at 12:51 AM Author Report #516097 Posted June 29, 2013 at 12:51 AM (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 June 29, 2013 at 12:52 AM by MaFotec
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now