0

I have this in my code in JavaScript file

qty = aCardBox.getElementsByClassName("cart-number")[0].value;

After this, I opened a PHP code. Now I want that qty variable from JavaScript in PHP code.

$qty = ?

Is this possible? If yes please help me. Thank you.

gorzk
  • 101
  • 8
  • 1
    "_After this , I opened a PHP code_" Nope, that PHP was executed on the server before the page was even loaded to your browser. – Teemu Jun 02 '22 at 10:57

0 Answers0