Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2005
    Thanked 0 Times in 0 Posts

    Loading data to a popup

    I have database with a table called "artiklar" and nine fields in that table.


    On the first page I want to be able to show the four first fields and a clickable link to the right.

    Name Weight Creator Country Link
    ----- ------- ------- ------- ----
    blah blah blah blah Click me
    blah blah blah blah Click me
    blah blah blah blah Click me
    blah blah blah blah Click me

    Clicking on the link will show a popup with the last five fields which has price-information, about that particular product, and show them in the popup.

    How do I....

    1# Create a link which opens a popup.
    2# Load the specified data to that popup-page.

    I haven't found any information about how doing that so... anyone?

  • #2
    Regular Coder meth's Avatar
    Join Date
    Jan 2003
    Thanked 9 Times in 9 Posts
    Parent page: concatenate the required vars which the child page needs to run, as GET name/value pairs to the 'Click me' URL. Use a target="_blank" link or a javascript window.open link to open the child page.

    Child page: write the script up as you normally would where your gathering the required values from GET vars.
    I do Web Design, Brisbane based.
    More time spent in PHP/MySQL Web Development.
    And Search Engine Optimisation takes up the rest of it.


    Posting Permissions

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