[PHP]
<?php
....some codes here
<tr>
<td class="hr"><? echo htmlspecialchars("Status")." " ?></td>
<td class="dr"><SELECT name=”Usr_Status”>
<option value="Active">Active</option>
<option value="Inactive">Inactive</option></SELECT>
</td>
</tr>
...code continues
?>[/PHP]
----------------------------------------------------------
hi there...
ill just make this simple...
// this is for you form.. where you input data...
- <html>
-
-
<form name="form_name" action="form_action_page" method="post">
-
<table>
-
<tr>
-
<td>
-
Status
-
</td>
-
<td>
-
-
<select name="Usr_Status">
-
<option value="active">Active</option>
-
<option value="inactive">Inactive</option>
-
</select>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
submit button.....
-
</td>
-
</tr>
-
</form
-
</html>
// now here is where you action or processing the data...
[PHP]<?php
// this is how to get the inputted data from form... if the drop down is not set it will just set an automatic value to 'active'.. ok.. ^__^
$usr_status = isset($_POST['Usr_Status']) ? $_POST['Usr_Status'] : 'active';
// now insert this variable to the table..
$sql = "INSERT INTO users(status) VALUES('".$usr_status."')";
$qry = mysql_query($sql);
?>[/PHP]
now just try this one... and if it works, modify it to where you're comfortable with.. ok... have fun... ^__^