I need to pass some data with these 2 methods together ( GET AND POST ). I write this method, but I don\'t know if it is safe:
This is not a combined GET and POST request; rather, it's a POST request with query parameters.
What you have written would be the right way. Always make sure that you get the expected fields:
if (isset($_GET['id'], $_POST['title'], $_POST['description']) {
// go ahead
}
Btw, make sure that you escape your output:
And if you're not uploading files, you don't need to set the enctype
of your .