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 -
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,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login