Forum Moderators: open

Message Too Old, No Replies

HTML Dynamic Redirect

         

fingaz

2:25 pm on Apr 25, 2009 (gmt 0)

10+ Year Member



Hi all,
Normally i wouldn't ask as i don't like bugging the smart people but here's a one off;

I'm looking to write a simple (i hope!) web page which has a form with two boxes; and it uses the values of these boxes to send the user to another webpage; ideally within an inline frame featured on the same page.

Ie.
Box 1 = IP Address (ex. 192.168.0.1)
Box 2 = Web Page (ex. index.html)
Submit (Changes inline frame on page to http://[IP]/[PAGE] )

And the resulting page loads in an inline frame displayed just below the form.

Its the dynamic result which is required which has stumped me; any ideas or light to shed on this would be really greatly appreciated!

[edited by: tedster at 3:49 am (utc) on April 26, 2009]
[edit reason] de-link the example code [/edit]

tedster

3:54 am on Apr 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, fingaz!

The iframe should be declared with a name and id attribute - for this example I'll choose the name "display":

<iframe name="display" id="display">

Then the select works like any other form navigation - except that the href= attribute is followed by a target="display" attribute.