Jump to content

Question Regarding Checkboxes


Recommended Posts

Hello guys!

 

Please pardon me for then newbie-ish question about checkboxes.

What if i have this simple code:

<form action="some_file.php" method="post">

<?PHP

while ($row = mysql_query($res)) {

    ?>

    <tr><td>

    <input type="checkbox" id="purchase_id<?php echo $n;?>" name="purchase_id<?php echo $n;?>" value="<?PHP echo $row[0] ?>" onclick="some_js_function();">

    </td></tr>

    <?PHP

}

?>

<input type="submit" value="submit">

</form>

 

How can i get the values of the selected purchase_id's? Thanks guys.

Link to comment
https://forums.phpfreaks.com/topic/157229-question-regarding-checkboxes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.