2010-08-20 2 views

Répondre

1

Il publie l'attribut name, mais il affiche comme deux variables, en ajoutant _x et _y au nom. Alors this example:

<form action="collect.php" method="post"> 
    <label>Image button 1: <input type="image" src="Calvin5.gif" alt="calvin5" name="calvin5"></label><br> 
    <label>Image button 2: <input type="image" src="Calvin6.gif" alt="calvin6" name="calvin6"></label><br> 
</form> 

Will, lorsque vous cliquez sur le premier bouton, résultat des valeurs quelque chose comme:

calvin5_x : 33 
calvin5_y : 54 

Dans votre tableau $POST.

+0

Merci, très bon point – kalpaitch