! php 怎么提交多个多项列表
紧急求助! php 如何提交多个多项列表
小白发帖求助。。。如截图所示,目前网页上有4个单选列表和多个多选列表,目的是用户点击Submit 按钮,后台获取已选择的选项,然后再在数据库中搜索,最后返回相应的搜索结果。
可是现在我都不知道如何在点击Submit后,获取user的选择的选项。 就是说关于Submit 的PHP 代码该怎么写啊啊。中间貌似还要涉及到转义字符的问题,求大家帮助!
附:代码片段和网页截图 (表单里的内容都是一些机械的feature,希望用户可以通过选择feature,搜索到所需的机械型号)
1) 这是一个单选列表
- HTML code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <div id="fourth" class="selection_options"> <select name="case_mounting" size="1" title="case and mounting"> <option value=' 1" SQR. PANEL'> 1" SQR. PANEL</option> <option value='0.95"X1.75" PANEL'>0.95"X1.75" PANEL</option> <option value='2"X3" FLAT PACK PANEL'>2"X3" FLAT PACK PANEL</option> <option value="HAND HELD CALIBRATOR">HAND HELD CALIBRATOR</option> <option value="EXP. PROOF CONDUIT">EXP. PROOF CONDUIT</option> <option value='1.45"X2.55" PANEL'>1.45"X2.55" PANEL</option> <option value='NEMA 4X2.6"X3.7" CONDUIT/WALL'>NEMA 4X2.6"X3.7" CONDUIT/WALL</option> <option value='1.6"X2" PANEL'>1.6"X2" PANEL</option> <option value='AVIATION 1" DIAMETER'>AVIATION 1" DIAMETER</option> <option value="DINRAIL">DINRAIL</option> <option value='3 1/2" BARREL PANEL'>3 1/2" BARREL PANEL</option> <option value="1/8 DIN PANEL">1/8 DIN PANEL</option> <option value="1/4 DIN PANEL">1/4 DIN PANEL</option> <option value='4" SWITCHBOARD PANEL'>4" SWITCHBOARD PANEL</option> <option value='1.5"X2.9"X2" PANEL'>1.5"X2.9"X2" PANEL</option> <option value='6"X1" EDGEWISE PANEL'>6"X1" EDGEWISE PANEL</option> <option value='6"X1.75" EDGEWISE PANEL'>6"X1.75" EDGEWISE PANEL</option> <option value='6.6"X1.4" EDGEWISE PANEL'>6.6"X1.4" EDGEWISE PANEL</option> <option value='11.3"X1.4" EDGEWISE PANEL'>11.3"X1.4" EDGEWISE PANEL</option> <option value='7"X1.4" EDGEWISE PANEL'>7"X1.4" EDGEWISE PANEL</option> <option value='7.3"X2.8" EDGEWISE PANEL'>7.3"X2.8" EDGEWISE PANEL</option> <option value='6.3"X2.8 EDGE PANEL '>6.3"X2.8 EDGE PANEL </option> <option value='5.7"X1.9" EDGE PANEL'>5.7"X1.9" EDGE PANEL</option> <option value='5.7"X2.84" EDGE PANEL'>5.7"X2.84" EDGE PANEL</option> <option value="NAKED PANEL/PCB MOUNT">NAKED PANEL/PCB MOUNT</option> <option value='6"X3.1" EDGE PANEL'>6"X3.1" EDGE PANEL</option> <option value='6"X6"X3" SANITARY'>6"X6"X3" SANITARY</option> <option value="VARIOUS SIZES & MOUNTING">VARIOUS SIZES & MOUNTING</option> </select> </div>
2) 这是其中一个复选列表
- HTML code
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> <div id="fifth" class="selection_name"> Outputs (Use ctrl+click to make multiple choices) </div> <div id="fifth" class="selection_options"> <select name="outputs[]" size="6" multiple title="out puts"> <option value="NULL" selected> </option> <option value="ANALOG 4-20mA/VDC">ANALOG 4-20mA/VDC</option> <option value="RELAYS">RELAYS</option> <option value="OPEN COLL. XTR">OPEN COLL. XTR</option> <option value="IRDA">IRDA</option> <option value="4-20mA CALIBRATOR">4-20mA CALIBRATOR</option> <option value="WIRELESS ON REQUEST">WIRELESS ON REQUEST</option> </select> <div class="clear"> </div> </div>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

If you delete the panel option on gnome and some options on power management in the Ubuntu system, the menu bar and status bar in the Ubuntu system will disappear. Restoring gnomepanel can solve this problem, so how to do it? The editor below will bring you the Ubuntu method to restore the accidentally deleted GNOMEPanel, let's go and take a look! The method is as follows: 1. Directly press Alt+F2, then enter gnome-terminal in the dialog box that comes out, and press Enter to execute Pop up the command line terminal, or Ctrl+Alt+T to pop up the command line terminal. 2. Enter gconftool-2--shutdown.

In Linux, option refers to a command option, which is a switch that adjusts the command execution behavior. That is, different options determine the display results of the command. Options are divided into long options and short options: 1. Short options are guided by "-". When there are multiple short options, spaces are used to separate each option; 2. Long options are complete words. , and usually cannot be combined.

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

What is AMP Coin? The AMP token was created by the Synereo team in 2015 as the main trading currency of the Synereo platform. AMP token aims to provide users with a better digital economic experience through multiple functions and uses. Purpose of AMP Token The AMP Token has multiple roles and functions in the Synereo platform. First, as part of the platform’s cryptocurrency reward system, users are able to earn AMP rewards by sharing and promoting content, a mechanism that encourages users to participate more actively in the platform’s activities. AMP tokens can also be used to promote and distribute content on the Synereo platform. Users can increase the visibility of their content on the platform by using AMP tokens to attract more viewers to view and share

The steps to use the panel control are to first create a Panel control and set its width, height, background color, border color, border width and padding, create two buttons and add them to the Panel control, and finally Add the Panel control to the form.

LG Display recently announced in a press release that it had begun mass production of its latest OLED panel for gaming monitors. Specifically, this is a 27-inch OLED panel and the first of its kind to achieve a frame rate of 480 Hz, which is said to

In Linux, option refers to a command option, which is a switch that adjusts the command execution behavior. That is, different options determine the display results of the command. Options are divided into long options and short options: 1. Short options are guided by "-". When there are multiple short options, spaces are used to separate each option; 2. Long options are complete words. , and usually cannot be combined. Introduction to command options (options) and parameters in Linux After logging in to Linux, we can enter commands after the # or $ symbol. Sometimes the command will be followed by "options" (English options) or "parameters" (English arguments) . That is, the command format in Linux is: command[opti

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没问题。
