Good.
What is the best way to pass an input value to a session variable in php without reloading the page?
For example, with this method the page does the reload:
<form method="post">
<input type="text" name="valor1" onchange="submit()">
</form>
<?php
session_start();
if($_POST['valor1']){
$_SESSION['valor1'] = $_POST['valor1'];
}
?>
How can I get the same result without reload?