'How to get the textbox value in PHP?

On my page I have one textbox and one button.
-- on the button click event.
-- one function will be called.
Now,
How to get that value of textbox and store in PHP variable? This should be done in that function which we will call on button click.



Solution 1:[1]

When your page is displayed, your PHP code has already been executed.

What you want to do is to learn AJAX, i.e. JS functions that call external PHP scripts.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 o0'.