HTML Save php variable in a hidden input

adesk

New member
XNullUser
Joined
Jan 24, 2022
Messages
2
Reaction score
0
Points
1
NullCash
8
Here is a simple methode for how to save php variable in a hidden input soyou can use later time after page load with javascript or jquery :
<input type="hidden" id="my_val" value="<?php echo $variable; ?>">
 
Top