File "php_textarea.php"

Full path: E:/sites/Single15/tinmung2007/webroot/THDC-Hai- Ngoai/hocwebchuan_form_handing/php_textarea.php
File size: 950 B
MIME-type:
Charset: utf-8

Download   Open   Back

<?php
 if($_SERVER['REQUEST_METHOD'] == "POST" ){
	 	$detail = $_POST {'detail'};
	//echo $detail;
	//kiểm tra trường họp không nhập dữ liệu để thông báo cho ngừoi dùng
		if(empty ($detail)){
			echo "chưa nhập dữ liệu trường detail";
			}else {
				// xử lý khi người dùng nhập dữ liệu
				echo $detail;
				}
 }
 
 ?>

<html>
<head>

<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Microsoft Theme" content="none, default">

<title>Nhận dữ liệu từ box</title>

</head>

<body>
			
      <form action="" method="POST">
     <h1>Nhận dữ liệu từ textarea</h1> <br>
     <label for="detail">Chi tiết</label><br></br>
     
     <textarea name="detail" id="detail" cols="50" rows="8"></textarea><br>
     <input type="submit" name="add_post" value="Gởi thông tin">
</form>

</body>


</html>

PHP File Manager