passing parameter to checkdir.php

Hi,

One my user needs pop up & one does not.
Hence I created a small html form which asks for Need POPUP [Y/N].
The result is submitted to /fop2/index.php (I renamed index.html to index.php)

But the popup happens via an internal script call to checkdir.php

How can I pass the variable $_POST[pop_up] to checkdir.php and then to the function custom_popup($_GET)

I tried SESSION, COOKIES, GLOBAL and none seem to be working.
SESSION works, but expires if there is no call for a long time, I can increase the value of session expire to a longer duration, but I do not want to risk. COOKIES, once again, my comfort level is low.

Could not get GLOBAL to work. I followed a text book example, but some how its not working, I am sure I am missing something.

Any help is appreciated.

Thx
Sans

Comments

  • fop2 will not pass more variables that the ones it is already sending, and none of them is related to a user preference. You must solve your issue with using php sessions or hardcoding allowed extensions in your checkdir.php script.

    You can very well store preference in a mysql table and check that table in checkdir.php. mysql will persist "forever" and you wont have the problems you are facing with php sessions.

    Best regards,
Sign In or Register to comment.