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.
idattribute MUST start with a letter, some browsers will have problems with numeric ids.