Technology How To

WFU Features for Personal Web Pages

Wednesday, April 16, 2008 4:57 pm

Personal Web Page Features
Wake Forest provides user access to web page features such as current date, last modified date, and access counts. Insert the HTML code below into the code view of a web page to use these features. The website link at the bottom of this page includes information for advanced users regarding the use of cgi-scripts and password protection on your WFU home page.

Please note, these features only function on the web page once it is published to a web server and will not run when pages are previewed in a web browser from a hard drive.

Current date (place code in between </body> and </html>)

The following code will display the current date in any style text you wish:

<!–#exec cgi=”/cgi-bin/textclock.pl”–>

Results in:
Friday, June 28, 2002

Last date modified (place code in between </body> and </html>)

The following code will display the modification date of the document it is placed on.

<!–#echo var=”LAST_MODIFIED” –>

Results in:
Last modified: Tuesday, 27-Nov-01 09:44:26

Access counts (place code in between </body> and </html>)

To include access counts in documents, add the following:

<!–#exec cmd=”/pub/gopher-data/cgi-bin/access_count username-docid” –>

Replace username-docid with your user name and an ID of your own choosing for the document. For example, if your username is Mary, and you want to keep an access counter for your home page, you could use:

<!–#exec cmd=”/pub/gopher-data/cgi-bin/access_count mary-home” –>

Results in:
Access count: 1

Using Forms (place code in between <body> and </body>
Simple forms that e-mail the form response can be created by pasting the text below above a form created in Dreamweaver. Begin by creating the form (including a Submit button) in Dreamweaver, then paste the text below into the Code View in Dreamweaver. Paste the code directly above the beginning of the form html. Complete the form by inserting your email address in line two and the name of the form in line 3. Publish the webpage.

<form action=”http://www.wfu.edu/cgi-bin/FormMail.cgi” method=POST>
<input type=hidden name=”recipient” value=”your_email@wfu.edu”>
<input type=hidden name=”subject” value=”Form Name”>
<input type=hidden name=”redirect” value=”http://www.wfu.edu/help/thanks.html”>
<input type=hidden name=”env_report” value=”REMOTE_HOST,HTTP_USER_AGENT”>
<table width=60% border=0 align=”center”>

Further Information
The info above can be found at: http://www.wfu.edu/help/web-guide/users.html

In addition this page also contains information on:

  • Creating a home page automatically
  • Creating a cgi-bin directory and using CGI scripts
  • Using password protection to control access to pages

Leave a Reply


Related Links & Other Resources

Search this blog

User Tools

Archives

Categories

Subscribe

Powered by WordPress.org, protected by Akismet. Blog with WordPress.com.

Service and Resource Portals