Using js variable in php

Hi @tnier01,

You’d need to send the JS variable from the client side to the server side, either using a form POST with a hidden variable, or an AJAX-type request. If you’ve added some JS to the step 3 submission form, you already have a form being submitted, so that seems like a logical place to add it.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like