dennnis Posted February 28, 2007 Share Posted February 28, 2007 after fetching from mysql I build table with 2 columns there are checkboxes in the first column and there are prices in second then I press submit button and the script should check if the box checked, then add to resulting price the price standing besides the current checkbox in the second column, if it's not checked then ommit price. I fell like here should be something like javascript eval() function, but I should make it using only php. Thanks. Link to comment https://forums.phpfreaks.com/topic/40489-if-checkboxes-checked/ Share on other sites More sharing options...
r-it Posted February 28, 2007 Share Posted February 28, 2007 that means that the form will be submitted to the server aight. set a variable like this: $check1 = $_POST['chk1']; if(strlen($check1) > 0) { //do the rest of the thing } else { //add to error array } Link to comment https://forums.phpfreaks.com/topic/40489-if-checkboxes-checked/#findComment-195903 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.