Home > Backend Development > PHP Tutorial > PHP与文本域解决方法

PHP与文本域解决方法

WBOY
Release: 2016-06-13 12:46:52
Original
1159 people have browsed it

PHP与文本域
在同一个PHP文件中,有如下代码

<input name="key" type="text" id="key" value=""/><br />
<input name="button" type="button" value="Calculate" />
Copy after login

在文本域里输入内容后,怎样把内容赋值给$dsth,
<?php<br />
$dsth="文本域里的内容"<br />
echo $dsth<br />
?>
Copy after login

点击按钮执行此代码

PHP 文本域
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template