SHARE
TWEET

chkbox 填零 with PHP

chusiang Jul 4th, 2012 33 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. # - 檢查 checkbox 是否被選取。
  3. function fnChkbox_check($var) {
  4.         if ($var != 1){
  5.                 $var='0';
  6.         }
  7.         return $var;
  8. }
  9.  
  10. $varTux = fnChkbox_check($varTux);
  11. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top