|
Home
Running CGI-BIN Scripts
No, you can only use the scripts we have pre-installed for you. If you wish to run your own scripts, please upgrade to the commercial web service via your control panel. What scripts are supplied? count imagemap mailform testform Please note that the names of these scripts must be in lower case. Can I use scripts on other sites? You can call scripts located on other servers, but always ensure that you have permission to use the facilities before including links to them in your pages. How do I use forms? Forms are supported on the Homepages server using the ' GET ' method, which limits the amount of information that may be sent. All the information that is sent from a form on your page will automatically be emailed to a user called webmaster on your computer. This means that if your host name is sample , data that people enter into your web pages will be sent to webmaster@sample.demon.co.uk To create a form that will be mailed to you, include the following line in your web page:
Then fill in your form buttons, textboxes and text areas. Remember to finish the form with the How do I test my forms? If you change the form statement in your webpage to read like this:
The data entered into your form will be displayed in your web browser, in exactly the same format as the e-mail message that would have been sent if you used the mailform script. How do I use image-maps? An image map is a graphic on a page that contains clickable 'hot spots'. Depending on where you click on the image, your browser is sent to a different page. The image map consists of two parts:
The image map facility uses the map file to tell it which areas of your picture are hot spots. The Homepages server uses maps in the NCSA format , so if you have a programme that creates maps, you should make sure they are in NCSA format and not the CERN format. Windows and X evaluation versions of mapedit are available from http://www.boutell.com/. The map files should be situated in your directory on the server. If you have all your map files in a directory called ‘maps', and wish to add hotspots to an image called mainmap.gif, the HTML code would look like this for a mail file called main.map:
You can find out much more information about image maps by looking at the external tutorials. How do I use the counter? To include the counter in your webpages, you need to add a line like this:
There is only one counter, so if you include it in two pages, the same number will be displayed on each one. You can alter the appearance of the counter by adding options to it. The first option should be preceded by a question mark, and there should be an ampersand (‘&' sign) between all the following options. For example, you can choose different character sets for the digits. The character sets are sorted alphabetically. You can also make the counter display the number of visitors, or the current time or date. So, to choose style ‘H' and display the date, you would include this in your page:
Other options allow you to change the colour of the counter, make it transparent, or tell the time. More information about these options is available from the Count 2.3 homepage. The Homepages counter supports all the options related to the appearance of the counter, as outlined on that page. This CGI is a modified form of Count 2.3 by Muhammad A Muquit and Kevin J Walsh. Can I still use the Homepages scripts if I upgrade? If you upgrade your Homepages account to one of our new commercial web hosting offerings (hosted on the same server platform) then you will still be able to use the Homepages CGI scripts with your old Homepages URL provided the dial up or broadband account associated with the Homepages URL remains open. This is to provide an easy upgrade path to our commercial web hosting products, so you do not have to start immediately modifying the content and layout of your site when you upgrade. Our commercial web hosting offerings also come with a more advanced set of easy to use scripts, such as an email form that allows you to set the recipient email address and add templates to set the look of the ‘thank you' message. For more details of these features, please see the examples at http://websupport.demonweb.co.uk/zisp-examples/. Back to the top |
©Copyright 2008 THUS
|