balkan7 Posted December 1, 2006 Share Posted December 1, 2006 hello us,i need checkbox fuction, so i need this if Checked show NEW if not Checked nothing show.plz i need this function. Link to comment https://forums.phpfreaks.com/topic/29174-checkbox-function/ Share on other sites More sharing options...
balkan7 Posted December 2, 2006 Author Share Posted December 2, 2006 someone help me ? Link to comment https://forums.phpfreaks.com/topic/29174-checkbox-function/#findComment-133768 Share on other sites More sharing options...
balkan7 Posted December 2, 2006 Author Share Posted December 2, 2006 hello i have this code:[code]function NewCheck($new) { $new = "<input type='checkbox' name='new' value='New'>"; $new2 = "<img src='images/new.gif' width='35' height='15'>"; if($_POST["new"] == "New") { echo $ew2;} else { echo "";} return $new;}[/code]mysql: [code]`New` varchar(25) NOT NULL default '',[/code]code:[code]$newinfo = $_POST[CheckNew]; $New3 = $newinfo[0]; <tr> <td align=right>New ?:</td> <td><?=NewCheck($New3);?></td></tr>$q1 = "insert into bb_catalog set New = '$New3',[/code]so i this code not working, need help also for insert picture in mysql when is checkbox checked, if not checked nothing for insert ! Link to comment https://forums.phpfreaks.com/topic/29174-checkbox-function/#findComment-134015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.