• Submit Checkbox values in Form with javascript

    In this script Checkbox values are stored in hidden field name store_del. In demo it was a text field.

    1
    2
    3
    
    Html/PHP code.
     
    Here you have to modify SQL Statement.
    9lessons | Tutorials
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    
    Explode! Comma(,) php script
    Watch demo 'store_del' value split Comma with below PHP fucntion
     
    <!--?php
    if(isset($_POST))
    {
    $st_val = $_POST['store_del'];
    $store_del_exp = explode("," ,$st_val);
    echo $store_del_exp;
    $store_del_exp_count=count($store_del_exp); for($j=0; $j<$store_del_exp_count;$j++)
    {
    $t_id = trim($store_del_exp[$j]);
    echo $t_id;
    }
    }
     
    ?-->
    Tags:

Comments on this post

Leave a Reply

  • Security Code :


    8 − = two