terrykhatri has asked for the wisdom of the Perl Monks concerning the following question:
Will appreciate if you monks help me implement it in my ADD and EDIT forms :Column | Type | M +odifiers ----------------+--------------------+-------------------------------- +------ Discontinued | boolean | default false select distinct("Discontinued") from "Products"; Discontinued -------------- f t (2 rows)
If its checked it should send a TRUE value to the database else False. Many thanks in advance Rgds Terry Please Note : I will post it to PerlGuru as well.my @options = ("True", "False"); <form action="" method="post"> Discontinued :<input type="checkbox" name="discontinued" value=$option +s><br> </form>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to implement a checkbox that will send data to db
by dasgar (Priest) on Jul 09, 2014 at 17:35 UTC | |
by peterp (Sexton) on Jul 09, 2014 at 22:29 UTC | |
by terrykhatri (Acolyte) on Jul 09, 2014 at 18:52 UTC | |
by terrykhatri (Acolyte) on Jul 10, 2014 at 10:56 UTC | |
by terrykhatri (Acolyte) on Jul 09, 2014 at 17:45 UTC | |
by marto (Cardinal) on Jul 09, 2014 at 18:30 UTC | |
|
Re: How to implement a checkbox that will send data to db
by Anonymous Monk on Jul 10, 2014 at 01:35 UTC |