Variable that never expires

0

I have developed a page in which the name of the user will be entered once, never again will be returned to this page.

On the next page you get information between her the name that was entered on the first page and then stored in a database.

I tried with a session variable but at some point it expires, I also tried it with a form variable but if for some reason that variable is lost I no longer get the value I need.

Use php and database in MySql

<script type="text/javascript">
<!--
var wait=setTimeout("document.geol.submit();",100000);
//-->
</script>
<input name="txtFirstName" type="hidden" id="txtFirstName" value="<?php echo $_POST['txtFirstName']; ?>">
    
asked by Pedro Jimenez 25.07.2017 в 20:35
source

1 answer

1

Could something like this to place a cookie

setcookie("Nombre_de_la_cookie","Valor(En tu caso el nombre del input)",Aquí le agregas el tiempo);
    
answered by 26.07.2017 в 01:08