I have input fields, which I process with AJAX and send it on another file.
The value of the inputs is always different.
How in the file, where I get the data from AJAX, to change the variable id always when I get the data from AJAX.
Example:
I get the data from AJAX in this file:
<?php
$id=1;
echo '<div id="$id"></div>';
?>
Then I display the result in the page with AJAX.
I want the id of the div to be always different.
if you want
$ida random number use the functionrandlink textyou can also create a random string