This is not a combined GET and POST request; rather, it is a POST request with request parameters.
What you wrote will be correct. Always make sure you get the expected fields:
if (isset($_GET['id'], $_POST['title'], $_POST['description']) {
}
Btw, make sure you avoid exiting:
<form method="post" action="profile.php?id=<?php echo rawurlencode($_SESSION['id']); ?>">
And if you do not download files, you do not need to install enctypeyours <form>.
source
share