I've ran into a problem for a page i'm making
I get values from the database then use them to get a submit button for each
while ($row = mysql_fetch_array($result)) {
echo '<input name="attack[]" id="' . $row['name'] . '" type="submit" value="' . $row['name'] . '" /><br />';
}
which works fine
The problem i've got is i want all the buttons to do the same thing, and this works fine
if(isset($_POST['attack'])) {
echo "Set";
}
what i need though is to find out the name/value/id of the button so i can use it in an sql query