Gaga wrote:
> Hi to all !
>
> How to insert one value of the radio button int db. ?
>
>
>
> ----------------------------------------------------------
> How to make the same but with checkbox ?
>
>
>
> ---------------------------------------------------------
> How to insert selected value from the dropdown menu ?
>
>
> ------------------------------------------------------------ ---------
>
>
/* assume you have already connected to database and you use mysql */
/* change the "option" in the $_REQUEST[] to the name you used in the form */
$query="INSERT INTO table(column_name) VALUES('".$_REQUEST['option']."')";
/* if you use another database, change the mysql part to the one for your
database or odbc if your database isn't supported by php */
mysql_query($query);
As checkboxes may generate more than one value, the $_REQUEST['checkbox'] may
be a array in which you have to make a for loop.