Skip to content
Advertisement

How can I call a Javascript variable on PHP(HTML)

So what I’m trying to do is something like this:

JavaScript

I want to name the new dynamic textbox. So I could call it later on another PHP page.

Advertisement

Answer

You have to send the javascript value through ajax POST to the server and read the post via php.

Not so sure what your aim is but let me know if this helps.

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