Home >Web Front-end >HTML Tutorial >The value of name in the select drop-down box cannot be obtained in php100_html/css_WEB-ITnose

The value of name in the select drop-down box cannot be obtained in php100_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:07:511017browse

feb669b3a7107886ee44361b80dcd0df
157bbac558a7833eedb56b4dcc52ac44
5e70bd20666081d6b971b7c2b7c6c41a
bd5b0de4b21147b22d8a5407a3ceaf1bAdd large category4afa15d3069109ac30911f04c56f3338
703e49eaede404d39352339c95412141Add small category4afa15d3069109ac30911f04c56f3338

18bb6ffaf0152bbe49cd8a3620346341
f5a47148e367a6035fd7a2faa965022e


Reply to discussion (solution)

You didn’t write this together, did you? ? This only works if the form is submitted. Your form here has no action address and no submit button. How do you want it to be obtained?

<form action="test.php" method="post"><select name="f_id"><option value="0">添加大类</option><option value="1">添加小类</option></select><input type = "submit" value = "apply" /></form>


Write the php code into a separate php file. I added it to test.php here. Click the apply button and it will be submitted to test.php In the file, the value can be obtained.
Give it a try.

No, you should find a book first and read it carefully~~~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn