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

PHP与文本域解决方法

WBOY
WBOYOriginal
2016-06-13 12:46:521153browse

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

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

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

点击按钮执行此代码

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