Hi
I have a great php script which adds selected products to a tracker.php form whilst a visitor browses the site. Once they are ready, they click on ‘prepare to send’ and the collected info is sent to an enquiry.php page where they complete their contact details and send the form.
All works fine, except when using this with IE7, after submitting an enquiry – if you then go back in to enquire about other products – ie, start from scratch again – the previous products enquired about are still in the form (even after submitting).
This is clearly a form_clear problem… but it doesn’t happen in Firefox/Safari and I wondered if anyone has any idea what I need to add/change in the code to get IE to clear down properly?
The code in the tracker.php is this:
[CODE]<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
session_start();
if (get_magic_quotes_gpc()) {
foreach ($_POST as $k => $v)
$_POST[$k] = stripslashes($v);
foreach ($_GET as $k => $v)
$_GET[$k] = stripslashes($v);
}
// “Clear Enquiry”
if ($_GET[‘clear’] != ”) {
$_SESSION[‘mk_enquiry’] = “”;
session_write_close();
?>
NB: this is just the code from the top of the page – if I posted it all here it would go on forever…. almost ?
Help?!
LP