Please tell me there is a js variable taken from input. How to put this value in php variable?
$(document).ready(function() { var rowCount = $('#one').val(); alert (rowCount); });
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <input id="one" value="10" type="text"> <?php $pages="///Должно быть 10//"; echo "$pages"; ?>