I'm currently busy with PHP and thought of sending a POST
request to another page without a form to do so. But how do you do this? I googled a bit and saw that cURL was used: is this the best way to go or can you do it (easy) without it?
I was thinking of making a small page where suggestions can be placed and you could decline / accept them. The suggestions are loaded from a (MySQL) database and presented along with an accept and decline button. If accept is clicked i would like to send the parameters to a page that accepts POST
as in this way:
if(isset($_POST['name'] && isset($_POST['text']))
{
// ...
}
I do know this can be done with $_GET
, but i'd like to do it by $_POST
for a change.