紧急求助! 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>

Ubuntu系统中如果删除了gnome上的panel选项以及电源管理上的某些选项,就会导致Ubuntu系统中的菜单栏和状态栏消失。恢复gnomepanel就能解决这个问题,那么具体如何操作呢?下面小编就为大家带来Ubuntu恢复被误删除的GNOMEPanel的方法,一起去看看吧! 方法如下: 1.直接按Alt+F2,然后在出来的对话框中输入gnome-terminal,回车执行弹出命令行终端,或者Ctrl+Alt+T弹出命令行终端。 2.输入gconftool-2--shutdown。

在linux中,option是指命令选项,是调整命令执行行为的开关,即选项不同决定了命令的显示结果不同。option(选项)分为长选项和短选项:1、短选项都是使用“-”引导,当有多个短选项时,各选项之间使用空格隔开;2、长选项都是完整的单词,且通常不能组合。

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

什么是AMP币?AMP代币是由Synereo团队于2015年创立,作为Synereo平台的主要交易货币。AMP代币旨在通过多种功能和用途,为用户提供更好的数字经济体验。AMP代币的用途AMP代币在Synereo平台中拥有多重角色和功能。首先,作为平台的加密货币奖励系统的一部分,用户能够通过分享和推广内容来获得AMP奖励,这一机制鼓励用户更积极地参与平台的活动。AMP代币还可用于在Synereo平台上推广和传播内容。用户可以通过使用AMP代币提升他们的内容在平台上的曝光率,以吸引更多观众来查看和分

panel控件的使用步骤是首先创建了一个Panel控件,并设置了其宽度、高度、背景颜色、边框颜色、边框宽度和内边距,创建了两个按钮,并将它们添加到Panel控件中,最后将Panel控件添加到窗体中。

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

在linux中,option是指命令选项,是调整命令执行行为的开关,即选项不同决定了命令的显示结果不同。option(选项)分为长选项和短选项:1、短选项都是使用“-”引导,当有多个短选项时,各选项之间使用空格隔开;2、长选项都是完整的单词,且通常不能组合。Linux中命令选项(option)及参数简介登录Linux后,我们就可以在#或$符后面去输入命令,有的时候命令后面还会跟着“选项”(英文options)或“参数”(英文arguments)。即Linux中命令格式为:command[opti

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没问题。<?phpfunction down_file($file_name,$file_sub_dir){//为防止乱码使用函数iconv$file_name=iconv("utf-8","gb2312",$file_


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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

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

SublimeText3 Linux new version
SublimeText3 Linux latest version
