remove the function of (last fields filling)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

remove the function of (last fields filling)

Post 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 ???
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove the function of (last fields filling)

Post 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"]);
}
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

Re: remove the function of (last fields filling)

Post by mubdea »

thank you very much

I tried this , but did not work :(
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove the function of (last fields filling)

Post by Klemen »

This should work only when you submit a ticket. Try submitting one and it should empty the fields afterwards.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

Re: remove the function of (last fields filling)

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: remove the function of (last fields filling)

Post by Klemen »

Sorry, try modifying submit_ticket.php not index.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mubdea
Posts: 10
Joined: Sat Apr 02, 2011 10:38 pm

Re: remove the function of (last fields filling)

Post by mubdea »

I tried it in submit_ticket.php

still not working
Post Reply