i´ve got a little problem with my php code. The code contains a form that reloads the document. But after the reaload I cant read the POST data. Here is the HTML code:
<form action="config_page.php" method="post">
... some Inputs
<input type="submit" value="Save" name="config_btn" class="submitbtn_2">
</form>
On top of config_page.php ive got this PHP code:
if(isset($_POST["config_btn"])){
echo "isset";
//Some Database writing
}else{
echo "is not set";
}
Bizarrely, the output "is not set" always appears after submiting the form, but Database Changes are applied anyway... (Database Changes are only performed if the isset statement is true)
Can someone figure out the problem?
Thanks for your help!