#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    0
    Rep Power
    0
    Hi, this is my first post here.....(wow )

    Well, ive got a problem,
    i've made a submit comment form with php and mysql, the form has an action to itself with a hidden var like this: input type=hidden action=add

    When i delete a comment on the page i go to a page called delete.php3 and there is a link with a javaline which goes -1 back in my history..

    When ive added a comment, the comments page contains action=add and when i delete a comment, i want to click on the link to go back to the comment page, but then, it doesnt work and it says:

    Page has expired.

    I wondered how to deal with this kind of problems........
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    not sure what your question is - but hidden field should not have an action assigned to it.

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Ontario, Canada
    Posts
    498
    Rep Power
    18
    I answered a question like this a couple days ago. It says the page has expired because it doesn't cache the form submission for security reasons; your best bet would be to make a hard link back to the main file, going back past the form submission page.

    ------------------
    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    0
    Rep Power
    0
    cka:

    i cant make a hard link because the page is variable

    its like: bla.php4?id=3434

  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Melbourne, Victoria, Australia
    Posts
    104
    Rep Power
    14
    Just pass the rest of the QUERY_STRING or whatever along each step so you can hard link back.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Ontario, Canada
    Posts
    498
    Rep Power
    18
    Exactly what #6 said. I have a similar setup in a news script I wrote a while back -- after it posts a comment, it does a META REFRESH back to news.php?id=xxx. It doesn't re-post any data, and it goes right back to the page where I input the data.

    ------------------
    To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson

Similar Threads

  1. Post back and Expired page
    By bonzaitrimmer in forum .Net Development
    Replies: 8
    Last Post: September 27th, 2004, 09:02 AM
  2. Replies: 2
    Last Post: February 11th, 2004, 11:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo