U-M ITS Web Hosting

send me

home / how-to / cgi-scripts / send me

Send Me

You can use the send_me CGI program to redirect users from your page to any internet host. This would most often be used to create a pull-down navigation menu (perhaps as a fallback to javascript navigation), but may have many uses. For example, if you include the following HTML code in your page:

    <form action="/cgi-bin/send_me" method="post">
    <select name="URL">
        <option value="http://www.umich.edu/~umweb/how-to/cgi-scripts/" />
            UM CGI Programs
        <option value="http://www.umich.edu/~umweb/" />
            UM Webmaster Team
        <option value="http://www.umich.edu/" />
            UM Homepage
    </select> 
    <input type="submit" value="GO" align=top />
    </form>

You will see the following. Experiment to see what happens:

Special Fields

The three fields that send_me recognizes as settings are:

  • URL - The URL to which a successful request is directed. If this is left blank, then the user is taken to a help screen.
  • fieldname - Allows you to specify a fieldname (other than "URL" to hold the URL to which a successful request is directed.
  • HELP_URL - Allows you to specify the page to be used as a help screen in case the send_me request fails. For example, this could be a page which simply says "you must select something from the menu to continue."