I have an auto submit form in a php file that verifies some remote information from my customer files to my files on my host server.
I was just thinking what would happen if the power of my host went down, or for some other reason cannot connect. In case that happens i want to trap the no connection error rather than my customer get an invalid verify.
How do i trap when the auto submit form cannot connect to the action http url. And then show a special message just for that. That way they know its not me its my host thats down.
i was sort of thinking 408 or 404 trap or maybe even a 503 but it says to handle that as 500, so not sure.
I was just thinking what would happen if the power of my host went down, or for some other reason cannot connect. In case that happens i want to trap the no connection error rather than my customer get an invalid verify.
How do i trap when the auto submit form cannot connect to the action http url. And then show a special message just for that. That way they know its not me its my host thats down.
i was sort of thinking 408 or 404 trap or maybe even a 503 but it says to handle that as 500, so not sure.
Comment