Timeout?

Discussion in 'PHP' started by pzn, Feb 22, 2008.

  1. #1
    I have a script that after the form is submitted.... if nothing happens for 30 seconds then it needs to refresh the page and give an error message.
     
    pzn, Feb 22, 2008 IP
  2. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Congratulations? I'm not understanding the question lol
     
    projectshifter, Feb 22, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    what is he talking about?
    most browser do this by their default capalbilities..

    there will be a error message if the browser cant able to progress to the server..
    -_-
     
    bartolay13, Feb 22, 2008 IP
  4. pzn

    pzn Active Member

    Messages:
    575
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    70
    #4
    You don't understand. This script needs to be refreshed after 30 seconds.
     
    pzn, Feb 23, 2008 IP
  5. projectshifter

    projectshifter Peon

    Messages:
    394
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well for starts you said "I have a script that after the form is submitted..." not "I need a script". And that's clientside stuff man, you can print out a javascript that will reload the page I guess if it's still there in 30 seconds, and if it goes through on the serverside have it print out a javascript that redirects immediately, but I'm not seeing the point, you should almost never need to do that and I think you're going to run into some bigger issues if you start resubmitting form data like that.
     
    projectshifter, Feb 23, 2008 IP