LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-30-2005, 04:47 AM   #1
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Rep: Reputation: 52
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="http://www.mydomain.org/cgi-bin/myprogr">
but the computer is down and the backup computer has taken over at:
"http://www.otherdomain.org"
so the form should now read:
<form method="post" action="http://www.otherdomain.org/cgi-bin/myprogr">

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, 05:07 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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-30-2005, 11:53 PM   #3
rblampain
Senior Member
 
Registered: Aug 2004
Location: Western Australia
Distribution: Debian 11
Posts: 1,288

Original Poster
Rep: Reputation: 52
Thank you Hko.
 
  


Reply



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 05:28 AM
Installed Mandrake 10.1 - ""There is no action associated with..." neuropulse Linux - Newbie 3 04-25-2005 02:59 AM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 08:19 PM
no action associated with "Floppy" TravisB Linux - General 1 02-05-2004 11:04 PM
Screensaver of "make" in action ChillingSilence Linux - General 1 01-03-2004 09:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:34 AM.

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