Forum Moderators: coopster
i've put these lines on top of index.php:
<?php
session_start();
if (isset($_SESSION['gebruikersnaam']) && isset($_SESSION['paswoord'])) {
echo '<div style="color:#0073c3; font-weight:bold; font-size:11px;" align="right">U bent ingelogd als: '.$_SESSION['gebruikersnaam'].' </div>';
}
?>
now i also have a search function.
when a user performs a search he gets the results of that search.
he can click on a search result to view the details.
on that detail page he can click on a link to go back to the search results.
the code behind that link is:
echo '<a href="javascript:history.go(-2)"><< terug naar producten</a>';
but, however, when the user clicks that link he gets a warning that the page he is trying to view contains POSTDATA that has expired from cache.
but, when i leave the session_sart()
....
out of index.php he doesn't get that error.
how can i fix this?
grtz
<form method="get" action="whatever" name="whatver">
that 'll solve it ;)
because the POST data isnt part of the URL you want to load when he presses back button thats why you get that prompt, in case of GET, user's input data will be part of the URL of search results page so you can go back easily
:P