Skip to content
Advertisement

Sending User input from python to php

This is my python file:

JavaScript

This is my PHP Script:

JavaScript

Problem my python file is not sending userdata to php script. Any help would be appreciated Thank you.

Advertisement

Answer

The problem is you are sending post data but in PHP script, you are capturing GET data. We can re-write both files like this to send POST data and capture POST data

Python file

JavaScript

PHP file

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement