University of Melbourne home page
 

page redirect

This is a simple script, which takes information supplied by a form to send users to a URL. The script is used as part of the University template, presenting a list of commonly used pages in the menu in the top band of many pages.

The script simply requires a valid url to be sent in a field named “url”. It doesn’t matter what type of field, though a typical example is a drop down list.

<form method="get" action="http://www.unimelb.edu.au/cgi-bin/nph-redirect.pl">
	<select name="url">
		<option value="http://www.unimelb.edu.au/">University Home page</option>
		<option value="http://events.unimelb.edu.au">Events Calendar</option>
		<option value="http://www.lib.unimelb.edu.au/">Library</option>
		<option value="http://uninews.unimelb.edu.au/">News</option>
	</select>
	<input type="submit" value="Go!" />
</form>

Which creates a form control like this


The result is a compact way of presenting a long list of links. This script could be made much more useful if rich statistics were available.

Note, that the perl scripts on the central webserver may be impacted by the Enhanced Webhosting Project. This should be taken into account before any development is undertaken that relies heavily on these scripts.

 
cgi/perl/redirect.txt · Last modified: 2007/02/21 17:00 by aharris
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki