Probléme avec mon formulaire
Résolu
terrorist
Messages postés
86
Date d'inscription
Statut
Membre
Dernière intervention
-
jojodivx Messages postés 193 Date d'inscription Statut Membre Dernière intervention -
jojodivx Messages postés 193 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
j'ai un probléme mon formulaire n'est pas transmis car j'utilise un boutton avec lien
mon code est le suivant
<?php session_start();?>
<html>
<head>
<link rel="stylesheet" href="css/mes_im.css" type="text/css" />
</head>
<body>
<?php
require "include/fonctions.php";
$pid=$_GET['pid'];
if(isset($_SESSION["pseudo"])) $pseudo=$_SESSION["pseudo"];
$profil=creer_tab_im($pid);
$titre=$profil[0];
$comment=$profil[1];
$key=$profil[9];
$group=gr_acces_im($pid);
$public=$profil[6];
$amis=$profil[7];
echo '
<FORM action="update_image_modif.php" method="post">
<table >
<caption> Modification de l\'image</caption>
<tr>
<tr>
<td>Nom :
</td> </tr>
<tr>
<td><input type="text" name="titre" size="26" value="'.$titre.'"/>
</td>
</tr>
<tr>
<td>Description :
</td> </tr>
<tr>
<td><textarea name="comment" size="100" value="'.$comment.'"></textarea>
</td>
</tr>
<tr>
<td>Mots clés
</td> </tr>
<tr>
<td ><input type="text" name="keywords" size="26" value="'.$key.'"/>
<input type="hidden" name="pid" value="'.$pid.'"/>
</td>
</tr>
<tr>
<td style="color:red;">Acces
</td>
</tr>
<tr>
<td >Public : <input type="checkbox" name="publics" ';if($public) {;echo '"checked"';} echo ' />
</td>
</tr>
<tr>
<td>Amis : <input type="checkbox" name="amis"'; if($amis) {;echo '"checked"';} echo ' />
</td>
</tr>
<tr>
<td>Autorisation aux groupes : <select name="group[]" multiple>'; for($i=0;$i<count($group);$i++){
echo '<option';if(est_membre($pseudo,$group[$i])){ echo 'selected="selected"';} echo ' >'; $t=$group[$i]; $tt=titre_de_gid($t); echo $tt[0] ; echo '</option>' ;} echo '</select>
</td>
</tr>
<tr><td>
<input type="button" name="lien" value="modifier" onclick="self.location.href=\'update_image_modif.php\' " class="bouton"/>
<input type="button" name="lien" value="annuler" onclick="self.location.href="'.$lien.'" " class="bouton"/> </td>
</tr>
<table/>
</form>';
?>
</body>
</html>
j'ai un probléme mon formulaire n'est pas transmis car j'utilise un boutton avec lien
mon code est le suivant
<?php session_start();?>
<html>
<head>
<link rel="stylesheet" href="css/mes_im.css" type="text/css" />
</head>
<body>
<?php
require "include/fonctions.php";
$pid=$_GET['pid'];
if(isset($_SESSION["pseudo"])) $pseudo=$_SESSION["pseudo"];
$profil=creer_tab_im($pid);
$titre=$profil[0];
$comment=$profil[1];
$key=$profil[9];
$group=gr_acces_im($pid);
$public=$profil[6];
$amis=$profil[7];
echo '
<FORM action="update_image_modif.php" method="post">
<table >
<caption> Modification de l\'image</caption>
<tr>
<tr>
<td>Nom :
</td> </tr>
<tr>
<td><input type="text" name="titre" size="26" value="'.$titre.'"/>
</td>
</tr>
<tr>
<td>Description :
</td> </tr>
<tr>
<td><textarea name="comment" size="100" value="'.$comment.'"></textarea>
</td>
</tr>
<tr>
<td>Mots clés
</td> </tr>
<tr>
<td ><input type="text" name="keywords" size="26" value="'.$key.'"/>
<input type="hidden" name="pid" value="'.$pid.'"/>
</td>
</tr>
<tr>
<td style="color:red;">Acces
</td>
</tr>
<tr>
<td >Public : <input type="checkbox" name="publics" ';if($public) {;echo '"checked"';} echo ' />
</td>
</tr>
<tr>
<td>Amis : <input type="checkbox" name="amis"'; if($amis) {;echo '"checked"';} echo ' />
</td>
</tr>
<tr>
<td>Autorisation aux groupes : <select name="group[]" multiple>'; for($i=0;$i<count($group);$i++){
echo '<option';if(est_membre($pseudo,$group[$i])){ echo 'selected="selected"';} echo ' >'; $t=$group[$i]; $tt=titre_de_gid($t); echo $tt[0] ; echo '</option>' ;} echo '</select>
</td>
</tr>
<tr><td>
<input type="button" name="lien" value="modifier" onclick="self.location.href=\'update_image_modif.php\' " class="bouton"/>
<input type="button" name="lien" value="annuler" onclick="self.location.href="'.$lien.'" " class="bouton"/> </td>
</tr>
<table/>
</form>';
?>
</body>
</html>
A voir également:
- Probléme avec mon formulaire
- Whatsapp formulaire opposition - Guide
- Formulaire de réclamation facebook - Guide
- Formulaire de reclamation instagram - Guide
- Confirmer le nouvel envoi du formulaire err_cache_miss - Forum Webmastering
- Problème avec Google Chrome - Forum Google Chrome