How do I pass a value from Java to PHP?

H M M M

New member
I am starting with JavaScript that has a conditional statement within,
e.g. if (whatever) {Do Something }

How can I pass the results to PHP?

I am guessing that the 'do something' (THEN) component of the conditional must set some variable to different values (ELSE) depending upon the results of the IF test....

I am not so familiar with JavaScript to do this....

And, if course, once that variable is set with a value, as defined in the { } and ELSE { } part of the JavaScript conditional, how can I affect code in PHP?

I need the PHP part to somehow read the different values set in that varaible in JavaScript, and then execute different PHP code accordingly, using a conditional in PHP.

I would also need an example of the PHP copde necessary to do this.
 
Back
Top