Home  >  Article  >  Backend Development  >  php如何获取页面元素的值

php如何获取页面元素的值

WBOY
WBOYOriginal
2016-06-13 11:50:491964browse

php怎么获取页面元素的值
页面上有元素

<input class="easyui-datebox" id="bt" name="bt"  value=<?php <br />		echo date("Y-m",strtotime("-4 month"));<br />		?>></input><input id="et" name="et" class="easyui-datebox"  value=<?php<br />	<br />			echo date("Y-m",strtotime("-1 month"));<br />		<br />	?>>

同一个页面上有php方法
function initRows1($bym,$eym){<br />......	<br />}

想把页面的元素的值传入到页面方法中,该怎么写?
------解决方案--------------------
php 运行于服务端,不能主动地获取客户端的任何信息
一切可被 php 见到的客户端信息,都是客户端发送的
------解决方案--------------------
先分清楚客户端和服务器端的区别与传递数据的方法。

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