Page 1 of 1

remove the function of (last fields filling)

Posted: Fri Apr 29, 2011 2:45 pm
by mubdea
Script URL: 6alabaty.net/Order
Version of script: 2.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

when I fill the fields, close the tap then open the script again, I see the fields are already filled as I did before .
I want to remove this function .
If I close the tap, or refresh the page, I want the fields to be empty .

How can I do that ???

Re: remove the function of (last fields filling)

Posted: Sat Apr 30, 2011 2:12 pm
by Klemen
Open index.php in notepad and just above

Code: Select all

/* Print header */
try pasting something like

Code: Select all

hesk_cleanSessionVars($_SESSION['c_name']);
hesk_cleanSessionVars($_SESSION['c_email']);
hesk_cleanSessionVars($_SESSION['c_category']);
hesk_cleanSessionVars($_SESSION['c_priority']);
hesk_cleanSessionVars($_SESSION['c_subject']);
hesk_cleanSessionVars($_SESSION['c_message']);
foreach ($hesk_settings['custom_fields'] as $k=>$v)
{
	hesk_cleanSessionVars($_SESSION["c_$k"]);
}

Re: remove the function of (last fields filling)

Posted: Sat Apr 30, 2011 6:45 pm
by mubdea
thank you very much

I tried this , but did not work :(

Re: remove the function of (last fields filling)

Posted: Sat Apr 30, 2011 7:18 pm
by Klemen
This should work only when you submit a ticket. Try submitting one and it should empty the fields afterwards.

Re: remove the function of (last fields filling)

Posted: Sun May 01, 2011 5:18 pm
by mubdea
I tried to submit one but still

it did not work, I used Firefox , I don't know if this will work with explorer

Re: remove the function of (last fields filling)

Posted: Sun May 01, 2011 6:42 pm
by Klemen
Sorry, try modifying submit_ticket.php not index.php

Re: remove the function of (last fields filling)

Posted: Fri May 06, 2011 8:27 am
by mubdea
I tried it in submit_ticket.php

still not working