I am looking for a way to keep form values after submit with cookies (after going to page2 and going back to page_form). I am really trying but i need you help guys.
I tried this but it didn't work
<? php
if (isset($_POST['Infos_test']))
{
$expire = 8*3600;
setcookie("Infos_test", $_POST['from']&|&$_POST['area_html'], time()+$expire);
}
?>
.....
<?php
if (isset($_COOKIE['Infos_test']))
{
$Infos_test = explode("&|&", $_COOKIE['Infos_test']);
}
?>
.....
<input type="text" name="from" style="width:350px" value="<?php echo $Info_test[0]; ?>"/>
<textarea valign="top" name="area_html" style="width:350px; height:150px; resize:none;" /><?php echo $Info_test[1]; ?></textarea>