I have html form and I have to submit that form on same page where's that form, add POST variable and then all variables pass to next page. I tried this:
<form method="POST" action="">
<input type="TEXT" name="names" />
<input type="TEXT" name="email" />
<input type="submit" name="send" />
</form>
and then this PHP Code:
if($_POST['send']){
$_POST['digest'] = "someText here";
header("HTTP/1.0 307 Temporary redirect");
header("Location:https://nextpage.com/form");
}
But when i get redirected to another page, all POST data are sent except "$_POST['digest']".. What should I do ?
Thanks and sorry for bad english.