Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-30-2005, 05:47 AM   #1
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,065

Rep: Reputation: 48
fall back "action=" in HTML

Is it possible to have or implement a "fall back" internet address in a form? If yes - can someone explain the steps to be undertaken or suggest links?

Or is there a better way?

The plan is to have a hosted site which sends clients to different computers according to what they submit in the forms. These computers are backed up by synchronized computers in different locations.

What we want to do is redirect the traffic to another computer if the one in use gets offline.
So we might have the following code in served HTML pages:

<form method="post" action="">
but the computer is down and the backup computer has taken over at:
so the form should now read:
<form method="post" action="">

We could have the backup computer changing the links but I'm sure there must be a true and tried solution to this sort of problems.

Thank you for your help.
Old 07-30-2005, 06:07 AM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
You could use some server-side scripting (e.g. PHP) to ping (or http request) the original host, and if it's down output another URL in the "action" attribute.

HTML itself doe not offer fail-over mechanisms for this.

It could be better to use some IP-level fail-over construction, but this will be more complex to implement I think.
Old 07-31-2005, 12:53 AM   #3
Senior Member
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 9.2
Posts: 1,065

Original Poster
Rep: Reputation: 48
Thank you Hko.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables not working for "accept" action rules vijfita Linux - Networking 7 05-13-2005 06:28 AM
Installed Mandrake 10.1 - ""There is no action associated with..." neuropulse Linux - Newbie 3 04-25-2005 03:59 AM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 09:19 PM
no action associated with "Floppy" TravisB Linux - General 1 02-06-2004 12:04 AM
Screensaver of "make" in action ChillingSilence Linux - General 1 01-03-2004 10:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration