Bonjour,
J'essaye à travers un formulaire de récupérer des données et de rediriger l'utilisateur vers un site WEB. Quand celui-ci clique sur le bouton il est rediriger vers un site web ($url_concours) et les données sont traitées par la page http://localhost/script-espace-membr...edirection.php. Ca ne fonctionne pas, l'utilisateur n'est pas redirigé. Par contre les données sont bien envoyées.
Le code php :
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 echo '<form name="myform" action='; echo '"http://localhost/script-espace-membre/zone-membre/fichier_site/test_redirection.php"';echo ' method="post" target="_blank">'; echo '<input type="hidden" name="redirect" value='; echo $row->url_concours; echo '">"'; echo '<br>'; echo '<LABEL for="titre">Pseudo : '; echo $row->pseudo; echo '</font> </LABEL>'; echo '<br>'; echo '<LABEL for="titre">Concours : ';echo $row->titre_concours;echo '</font> </LABEL>'; echo '<br>'; echo '<LABEL for="datedujour">Début du concours :';echo $row->datedujour;echo'</font></LABEL>'; echo '<br>'; echo '<LABEL for="datelimite">Fin du concours : ';echo $row->datelimite;echo' </font></LABEL>'; echo '<br>'; echo '<input type="hidden" name="type_concours" value=';echo $row->type_concours; echo '>'; echo '<input type="hidden" name="id_concours" value=';echo $row->id_concours; echo '>'; echo '<input type="hidden" name="titre_concours" value=';echo $row->titre_concours; echo '>'; echo '<input type="hidden" name="login" value=';echo $row->$login; echo '>'; echo '</td><input type="submit" value="Allez au site du concours" ></td>'; echo '</form>';
Partager