Page 1 of 1

Assigning unique value to checkbox

Posted: Mon Jun 16, 2003 2:41 pm
by polosport6699
I would like to assign a unique value to a checkbox each time a new entry is submitted to the database, so that I can have management check a checkbox making a table visible on the frontend page

Code: Select all

if($value == 1) {
                $query = "INSERT INTO listing (

                                        jcode, 

                                        designation, 

                                        responsibilities, 

                                        qualifications, 

                                        cname, cmail, 

                                        posted, 

                                        fk_department, 

                                        fk_location, 

                                        fk_salary) 

                                            VALUES (

                                                '$jcode', 

                                                '$dsg', 

                                                '$rsp', 

                                                '$qlf', 

                                                '$cname', 

                                                '$cmail', 

                                                NOW(), 

                                                '$dpt', 

                                                '$loc', 

                                                '$sal')";
            } else { 
                echo "User submitted the wrong information"; 
            }
How would I go about doing this?

Posted: Mon Jun 16, 2003 7:54 pm
by Paddy
I think we need more info. At least I do.