I have an insert script and an update script, both separate. The script submits the data to the database, and adds or updates the database. The scripts work within a table.
Part of the code:
<form method="post" action="<?php $_PHP_SELF ?>">
<table width="750" border="0" cellspacing="1" cellpadding="5">
<tr>
<td width="100">Staff ID</td>
<td><input name="staff_id" type="text" id="staff_id">
<th>
Enter Desired ID
</th>
</td>
</tr>
<tr>
<td width="100"> </td>
<td> </td>
</tr>
<tr>
<td width="100"> </td>
<td>
<input name="update" type="submit" id="update" value="Update">
</td>
</tr>
</table>
</form>
I want to add some options to the table, like a drop down menu. How would I go about that?
<?php $_PHP_SELF ?>won't do anything. First off what is$_PHP_SELFand secondly you aren't echoing it.