Jump to content

selection


ecabrera

Recommended Posts

how do i make it so that all the items appear on eventname

 

<?php

require "scripts/connect.php";

$query = mysql_query("SELECT eventname FROM events");
while ($row = mysql_fetch_array($query)){

$eventname = $row['eventname'];

$form = "<form action='addcat.php' method='post'>
<table>
<tr>
<td>SELECT EVENT</td>
<td>
<select value='$eventname'>
<option value='$eventname'>$eventname</option>
</select>
</td>
</tr>
<tr>
<td>SELECT VENUE</td>
<td>
<select>
<option></option>
</select>
</td>
</tr>
<tr>
<td>SELECT CATEGORY</td>
<td>
<select>
<option>FOOTBALL</option>
<option>BASKETBALL</option>
<option>HOCKEY</option>
<option>DRAMA</option>
<option>MUSIC</option>
<option>DANCE</option>
<option>VISUAL ARTS</option>
</select>
</td>
</tr>
</table>
</form>";
echo "$form";
}
?>

Link to comment
https://forums.phpfreaks.com/topic/253271-selection/
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.