Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. passing parameter to checkdir.php

passing parameter to checkdir.php

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 92 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    rscl
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      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,

      1 Reply Last reply
      0

      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups