这是php文件中内嵌的html代码,用php在同一文件中不通过form提交的方式获取select标签被选中的value
不想通过form的原因是这是一个子页面,父页面已经带有form了,改动量过大
<div style="float: right;margin-left: 20px;margin-right: 0px;">
<span>
<select name="sele" id="sel" style="width: 120px;height: 22px;" value="">
<option id="author" value="author">作者:</option>
<option id="title" value="title">主题:</option>
<option id="Name" value="Name">名称:</option>
<option id="autoCode" value="autoCode">编号:</option>
</select>
</span>
</div>
不是直接include 导入父页表单中就行了,和父页表单一起提交。这个没什么要改动的啊?
父页和子页什么关系?父页用iframe加载子页?是的话直接js获取。
document.getElementById('iframeId').contentWindow.document.getElementById('sel').value
是想在父页面中获取子页面的表单数据嘛?