I need some ajax code to assign value to a session
for example
$_SESSION[‘verif_code’]
i am generating a random number to assign value to this session
i need some ajax code to refresh this random number function and assign value to this session.
does any one have an idea please share it with me
Thanks
You would have to replace all commented out sections with your own code, but here is a generalized template for AJAX requests.
Inside of your HTML/PHP file, where the AJAX will take affect.
Your Javascript code to call the AJAX request.
Your PHP file inside of the AJAX call, named yourfile.php will process the data returned and will do whatever data manipulation is needed back to your
divelement without a page refresh.Take an overview of AJAX Tutorial before you jump into things.