这篇文章主要为大家详细介绍了php 提交textarea文本框数据到后端实现方法,具有一定的参考价值,可以用来参考一下。
对网页提交textarea文本框数据到php后端代码感兴趣的小伙伴,下面一起跟随四海网的小编两巴掌来看看吧!
<html>
<head>
<title> </title>
</head>
<body>
<form action="form.php" method="GET">
<input type="text" name="user">
<br />
<textarea name="address" rows="5" cols="40">
</textarea>
<br />
<input type="submit" value="go">
</form>
</body>
</html>
php后端代码,保存为form.php
/**
* 网页提交textarea文本框数据到php后端代码
*
* @param
* @arrange 512-笔记网: www.q1010.com
**/
<html>
<head>
<title>Reading textarea from form</title>
</head>
<body>
<?php
print "Welcome <b>$_POST['user']</b><p>\n\n";
print "Your address is:<p>\n\n<b>$_POST['address']</b>";
?>
</body>
</html>
/*** 来自四海网(www.q1010.com) ***/
本文来自:http://www.q1010.com/173/971-0.html
注:关于php 提交textarea文本框数据到后端实现方法的内容就先介绍到这里,更多相关文章的可以留意四海网的其他信息。
关键词:textarea
四海网收集整理一些常用的php代码,JS代码,数据库mysql等技术文章。