ShaileshShinde
asked on
Values does not retains
Hello Experts,
User selects the option and then it hit the submit button the values it has selected gets to default zero whereas the selected values get updated into database.
please find below code for this...
Thanks in advance,
Shail
User selects the option and then it hit the submit button the values it has selected gets to default zero whereas the selected values get updated into database.
please find below code for this...
....
<td align="center"><select name="ss1">
<option value="0">0</option>
<option value="5">5</option>
<option value="15">15</option>
<option value="25">25</option>
</select>
<?php
$notify = "";
if ($usr_name == 'XSP') {
$usrid = '2';
}
if(isset($_POST['ss1'])){ $notify = $_POST['ss1'];
$query = "UPDATE usr_k SET usrslfscre='$notify' WHERE id='1' AND pmid='$usrid'";
mysql_query($query);
//print_r($_POST['ss1']); -
}
}
?>
Thanks in advance,
Shail
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER