Dans une table je fais que j'ai une variable de bouton radio nommée 'coût' et je veux imprimer la variable 'cost' dans le pied de page du formulaire dans une phrase comme 'Faire le check out pour <>'Comment imprimer une variable Javascript dans une table?
S'il vous plaît, quelqu'un peut-il donner des conseils sur la façon de le faire? Un grand merci, TEH
<table id="gradient-style" summary="Throttle Conversion">
<thead>
<tr>
<th scope="col">Existing Throttle</th>
<th scope="col">Upgrade To</th>
<th scope="col">Additional Features</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col">Upgrade Price</th>
<th scope="col">Select One</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td><strong><center>29 Functions</td>
<td><strong><center>Simplex Radio</td>
<td><strong><center>Duplex Radio</td>
<td></td>
<td></td>
</tr>
<tr>
<td>DT400</td>
<td>DT402</td>
<td><center>*</td>
<td></td>
<td></td>
<td>$25.00</td>
<td><input type="radio" name="cost" value="25"></td>
</tr>
<tr>
<td>DT400</td>
<td>DT402R</td>
<td><center>*</td>
<td><center>*</td>
<td></td>
<td>$50.00</td>
<td><input type="radio" name="cost" value="50"></td>
</tr>
<tr>
<td>DT400</td>
<td>DT40D</td>
<td><center>*</td>
<td></td>
<td><center>*</td>
<td>$65.00</td>
<td><input type="radio" name="cost" value="65"></td>
</tr>
<tr>
<td>DT400R</td>
<td>DT402R</td>
<td><center>*</td>
<td><center>*</td>
<td></td>
<td>$25.00</td>
<td><input type="radio" name="cost" value="25"></td>
</tr>
<tr>
<td>DT400R</td>
<td>DT402D</td>
<td><center>*</td>
<td></td>
<td><center>*</td>
<td>$65.00</td>
<td><input type="radio" name="cost" value="65"></td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7"> Based on your selection, the conversion cost is <?php $_post["cost"]?> </td>
</tr>
</tfoot>
</table>
C'est fou, fantastique! Merci beaucoup Paul !! J'ai passé des heures à regarder ça. Je serai capable d'apprendre de cela. Merci encore. Tom Hebert – user151273