Jump to content

is this possible??


ec

Recommended Posts

It should look something like this:

 

<?php

if (isset($_POST['submit'])){
   $choice = $_POST['choice'];
   
   echo "The user selected <b>$choice</b><p>";
}

$query = mysql_query("SELECT * FROM TABLE");

echo '<form>';

while ($row = mysql_fetch_assoc($query)){
   echo "<input type='radio' name='choice' value='{$row['unique_col']}'><br>";
}

echo '<input type="submit" name="submit">';
echo '</form>';

?>

Link to comment
https://forums.phpfreaks.com/topic/98522-is-this-possible/#findComment-504221
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.