Wednesday, 12 January 2022

PHP#17MySQL#13 - Trang xử lý THÊM dữ liệu (process.php) - Chuyển trang trong PHP: header("location:theloai.php");

<?php 

include("../connect.php");

if(isset($_POST['themtl']))

{

$sl="insert into theloai values(NULL,'{$_POST['lang']}', '{$_POST['TenTL']}', '{$_POST['TenTL_KhongDau']}', {$_POST['ThuTu']}, {$_POST['AnHien']})";

if(mysqli_query($link,$sl))

header("location:theloai.php");

else echo $sl;

}

?>

0 comments:

Post a Comment