U
U
Uzair Izha2015-12-05 22:43:53
PHP
Uzair Izha, 2015-12-05 22:43:53

How to do when choosing an option to send to the database?

<select name="" id="">
<option name="v" value="1">Вкл</option>
<option name="v"  value="0">Выкл</option>
</select>

How to do, for example, when choosing on, the value 1 was sent to the database, let the page be reloaded at that moment.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2015-12-06
@2fox

<select id="" name="" onchange="this.form.submit();">
<option name="v" value="1">Вкл</option>
<option name="v"  value="0">Выкл</option>
</select>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question