-
php POST not working
I have this
PHP Code:
$userID = $_POST['id'];
in a php file.
The $userID is in an echo and empty when sending a POST http request using axios.
Not sure if I am doing something wrong or if something on the site needs to be set to enable POST php.
Other php code for get is working.
Thank you,
Michel
-
Probably the request is wrong. Did you try with a simple HTML form?
HTML Code:
<form action="your_page.php" method="POST">
<input type="text" name="id">
<input type="submit">
</form>
Bye!
-
That works. I see the id. Thank you!
Now I know it is something wrong with the axios post request.