Advertisement
Advertisement
| 12.05.2007 at 09:52AM PST, ID: 23003732 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
<?php
$names = $_REQUEST['category'];
foreach ($arr as $names) {
$updateSQL = sprintf("UPDATE Table SET category='%s' WHERE id=%s", $names, (int)$_SESSION['user']->getID());
}
?>
<form name="updateForm" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="checkbox" name="category[]" value="orange"></input>Orange
<input type="checkbox" name="category[]" value="purple"></input>purple
<input type="submit" name="sender" value="Save Profile">
</form>
|