form.php
<form method="POST" target='_blank' action='CF.php' id="cf" name="cf">
<input type='text' id='test' name='test' value='0' >
<button form="cf">Proses</button>
cf.php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$test = $_POST['test'];
if (empty($test)) {
echo "test is empty";
} else {
echo $test;
}
echo "connect";
}else{
echo "error";
}
?>
result is "test is empty connect"
did I do a little wrong ? or big wrong ? T.T