hi every body
I am working on web project and I want a simple code

I have made a drop down list in my HTML
and I want to save the selected value in a PHP variable
so I can insert it to my database is this is the correct way?


Code:
category <select  name="category_type"  > 
<option <?php if ($_POST['selectbox'] == 'Networks') echo '$selected="Networks"';?>>
...