Assigning unique value to checkbox

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
polosport6699
Forum Commoner
Posts: 35
Joined: Wed Jun 11, 2003 3:19 pm

Assigning unique value to checkbox

Post 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?
Paddy
Forum Contributor
Posts: 244
Joined: Wed Jun 11, 2003 8:16 pm
Location: Hobart, Tas, Aussie
Contact:

Post by Paddy »

I think we need more info. At least I do.
Post Reply