|
|
|
|
Bonjour,
Voilà j'ai un soucis avec un champ d'image.
Voilà je désire que quand le surfeur clique sur une image, l'image envois par post une valeur 1.
Voici mon code ce sera plus claire peut etre...
<form action="index.php" method="post"> <input name="theme" type="image" value="1" src="images/ban.jpg" width="350" height="40" border="0"> </form> $theme1=$_POST["theme"]; echo '<h1>'.$theme1.'</h1>';
Je suis désolé je me suis emballer trop vite ...
<form action="index.php" method="post"> <input type="hidden" value="1" name="theme"> <input type="image" src="images/ban.jpg" width="350" height="40" border="0"> <input type="hidden" value="2" name="theme"> <input type="image" src="images/anima.jpg" width="350" height="40" border="0"> </form> Il prend en compte que la dernière image ... Et si j'indique <form action="index.php" method="post"> <input type="hidden" value="1" name="theme"> <input type="image" src="images/ban.jpg" width="350" height="40" border="0"> </form> <form action="index.php" method="post"> <input type="hidden" value="2" name="theme"> <input type="image" src="images/anima.jpg"" width="350" height="40" border="0"> </form> Il me fait un espace entre les formulaire. Il y a une autre solution ? Merci. Dyco
|
En fait elles sont l'un en dessous de l'autre.
<form>qui fait automatiquement l'espace. Merci c'est génial que tu puisse m'aider comme çà. Dyco |
Répondre à Erdnax
|
<table> <tr> <td> <form action="index.php" method="post"><input type="hidden" value="1" name="theme"> <input type="image" src="images/ban.jpg" width="350" height="40" border="0"> </form> </td> </tr> <tr> <td> <form action="index.php" method="post"><input type="hidden" value="2" name="theme"> <input type="image" src="images/anima.jpg"" width="350" height="40" border="0"> </form></td></tr> <tr> <td> <form action="index.php" method="post"><input type="hidden" value="3" name="theme"> <input type="image" src="images/cdg.jpg" width="350" height="40" alt=Cdg> </form> </td></tr> <tr> <td> <form action="index.php" method="post"><input type="hidden" value="4" name="theme"> <input type="image" src="images/wowm.jpg" width="350" height="40" alt=Wow Moonlight> </form> </td> </tr> <tr> <td> <form action="index.php" method="post"><input type="hidden" value="5" name="theme"> <input type="image" src="images/wows.jpg" width="350" height="40" alt=Wow Sunlight> </form> </td> </tr> </table> Voilà mon code, elles doivent etre l'une en dessous de l'autre. Pas l'une a coté de l'autre. Merci de tes réponses rapide. Dyco
|
Je suis désolé mais c'est bien l'un en-desous de l'autre que je veux...
|
Re,
|
Oui c'est ce que j'avais fait mais je voulais que les personne ne voix justemment pas çà pour des raison de securité de un et des faciliter d'encodage.
|