|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
check box
i havecheck boxes where default values are either checked or unchecked.now, when i try to update them and save it i need to see the updated value in my form.I did this stuff with my text fields, it is working perfect.But, it is not the same with the check boxes.Any suggestions would be highly appreciated.
<?php include "dbconnection.ini"; ?> <form name="frm_main" method="post"> <? include "edit.ini"; ?> <br></b><input type="submit" name="save_button" value="Save"></br> <input type="hidden" name="frm_save" value="1"> </form> ----->edit.ini<----------- <? if ($frm_save == 1) { $sql = "update Statement"; $result = ibase_query($connection, $sql); } $db = 'Select statement'; $query = ibase_query($connection, $db); while ($row = ibase_fetch_object($query)) { $test=$row[1]; } ?> <input type="checkbox" name=field value = "<? echo $row[1]; echo $test; ?>"> |
|
#2
|
|||||
|
|||||
|
RE: check box
php Code:
I moved the code around a bit for my own readability...sorry.. Cheers, Keith. |
|
#3
|
|||
|
|||
|
RE: check box
hi keith
when you refresh the page again, the value which is stored in the db is not reflecting.for example, if now we checked the checkbox and click save, it remains as it is checked and now, when i refresh the page, it does'nt show as it is checked.what would be the problem?would you please fix it. thank you |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > check box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|