I am trying to create HTML page dynamically within php controller. This is the part of code
$body .= ' <form method="get">
<input type="hidden" name="leave" value=<?php echo "$id">>
<input type="submit" value="Leave">
</form>';
It creates button with text "Leave" and I need to pass an ID with GET/POST request to work with it in another function. Is it possible to do it this way?
I tried a few stackoverflow pages but none of that worked. Here is what my log says:
[Sun Nov 20 16:43:37 2022] id in _GET: <?php