Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    171
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Pop-up selections values display

    I am new to PHP and would like to ask if the following makes sense; that is, is this the best way to handle the requirement. I have a display that contains certain database fields, and when the user clicks a button another window will pop-up from which selections can be made. Those selections then need to be added to the first screen.

    My plan is to use session data. The selections from the pop-up will be saved in sessions, and the first screen will load data from the database, and then additionally from any saved session data.

    But, I don’t think this will necessarily work with a pop-up. Seems like I will have to redirect to another display for selections and after selections are made (or not) the original display is also redirected to from the selections display.

    Maybe PHP is not the right way to go, or is it?

    Thanks,
    -tdavis

  • #2
    Regular Coder
    Join Date
    Apr 2009
    Location
    somewhere over the rainbow
    Posts
    105
    Thanks
    2
    Thanked 14 Times in 14 Posts
    i don't think i understood you
    do you mean something like this: http://www.w3schools.com/Dom/tryit.a...om_httpsuggest

  • #3
    Regular Coder
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    171
    Thanks
    5
    Thanked 0 Times in 0 Posts
    I thought about that (is that Ajax?). But not really. The selection would come from a pop-up screen that lists available selections. Then, when that window closes the items selected would be added to the first screen displayed.

  • #4
    Regular Coder
    Join Date
    Apr 2009
    Location
    somewhere over the rainbow
    Posts
    105
    Thanks
    2
    Thanked 14 Times in 14 Posts
    so you have 2 php pages.

    main page contain the selected items read from cookies\db what you chose
    and the pop-up page contain the select with some options that you can add and will write to cookies\db

    after you open the pop-up and submit what you want, do a refresh to the main page with js to show the user his items.

  • #5
    Regular Coder
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    171
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Do a refresh? Do you mean provide a refresh button that the user must click?

  • #6
    Regular Coder
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    171
    Thanks
    5
    Thanked 0 Times in 0 Posts
    I think IFRAMES may be the way to go.
    I tried a quick test, and it might work...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •