SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist Scheisskopf's Avatar
    Join Date
    Nov 2004
    Location
    Southampton, UK
    Posts
    537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    resubmitting post vars

    when a page has linked to the page containing my php script, i can see all the variables that that page sent to my scri[pt by using $_POST. i was wondering whether there would be a way that the page containing my php script qwould be able to resubmit these variables, when the user clicks on a text link to another page - the trouble is i need to add another variable to these original variables.

    Thanks.

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use sessions to proceed the variables

  3. #3
    SitePoint Evangelist nick0161's Avatar
    Join Date
    Oct 2004
    Location
    australia
    Posts
    424
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    agree with reminder, else you could use a hidden post.... but $_SESSION variables are the best to go....

  4. #4
    SitePoint Member
    Join Date
    Jun 2004
    Location
    UK
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or I suppose you could add them to a query string if you were resubmitting via a link, then pick them up using $_GET.

    As above though, $_SESSION is probably the most flexible route.

  5. #5
    SitePoint Wizard
    Join Date
    Mar 2004
    Posts
    1,647
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes get variable is ok though...
    but if the form is large then there can create some problems!
    like index.php?a=b&b=c&c=d&d=e....so on


Bookmarks

Posting Permissions

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