网页提交textarea文本框数据到PHP后端代码范例,修改时注意修改表达的action和后端PHP网页的地址
@R_404_161@
<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.www.jb51.cc
**/
<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>
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528408.html