hkhosting.com

instructions to users

HOME
support/ change password | F.A.Q. | glossary
about us
technical specs
payment methods
contact us
hosting packages
server hosting
sign up
special offers
resellers
domain availability
jump to another section
Index

redirect cgi

The redirection CGI is useful for having a pull-down navigation menu without using javascript. It can redirect you to any URL.

Example usage

<form action="/bin/nph-redir.cgi" method="get">
Please select a product category:<br>
<select name="dest">
<option value="/products/handbags.html">Handbags</option>
<option value="/products/shoes.html">Shoes</option>
<option value="/products/belts.html">Belts</option>
<option value="http://www.manufacturer.com/ourfactory.html">Manufacturer's site</option>
</select>
<input value="go" type="submit">
</form>

note: the attribute name="dest" and action="/bin/nph-redir.cgi"cannot be named any other way for this cgi to work.

Frame/window targeting:

Adding target="frame_name" to the <form> tag, like:

<form action="/bin/nph-redir.cgi" method="get" target="main">

It will then redirect to the frame named main. Other options include "_blank" which wil open a new window, and "_top" which will break out of frames.

Copyright © 2023homeWhat Next Limited. All rights reserved. Quality Hong Kong web hosting. | Feedback | Terms & Conditions