Jump to content

How to pass a Javascript variable to a PHP variable without reloading the page


xerox02

Recommended Posts

How do you pass a Javascript variable to a PHP variable without reloading the page?

(I am pretty sure this is done through ajax)

 

I am trying to make a simple checkbox in js, and depending on the state of the checkbox, I want the value of the current state of the checkbox to be put into a js variable. After that, I want to send that js variable value to a php variable, and then just echo the value. An example file would be amazing!

 

Thanks a lot,

Xerox02

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.