Reloading the page with new values for each variable

Discussion in 'PHP' started by enchance, Sep 18, 2007.

  1. #1
    I'm trying to build a small portfolio and instead of using several HTML pages I wanted to just use PHP so I could learn better. What I have is an array of each image's path (for the "src" attribute). I was thinking when I click "Next" it increments the array and once it has reloaded itself it would simply look at the query string then display the new image.

    I have some questions though:
    1. What line do I use which will reload the page with the new incremented variables?
    2. When the page reloads itself, will it automatically get the new image to load? I already placed $thisimage = $_GET['imagenumber'] at the very top so it updates the "src" attribute for the image.

    Thanks in advance. Any help/suggestions would be great, especially with that reloading part.
     
    enchance, Sep 18, 2007 IP
  2. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you want to reload the page via a link click or a form button push?
     
    sea otter, Sep 18, 2007 IP
  3. enchance

    enchance Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just a link click.
     
    enchance, Sep 19, 2007 IP