Javascript in PHP events - pass parameters to PHP

Hello,

how can I pass parameters from JavaScript to PHP? I created a button in a grid with php run option. I am entering a value into a filed which appears with Javascript. I have the value but how can I pass it to php?

This is my actual code:

 $theinfo = "test";
  echo "<script> var dnn = prompt('Please enter number', '0'); '.$theinfo.' = dnn;</script>"; 
  echo $theinfo;
 

What I am doing wrong?

BR
Christina

To receive data from a webform which runs locally in the browser you need an ajax event or a submit. Both are missing here. It’s not so easy to use javascript without the scriptcase macro’s for that. But you will find some samples in this forum if I remember well. But in general I would advise to search for another solution than this one.