Hosting

Webspace scripts

Summary: There are two pre-configured scripts available for you to use with your webspace, here's how to use them.
Select your provider?
Our website now provides help and support to customers of Plusnet, Force9 and Free-Online. Please select your provider using the drop-down menu and you will be provided with the technical support details that are appropriate to you.
  1. Email feedback form
  2. Web site hit counter

1. Email feedback form

This script allows you to put a feedback form on your web page. Information submitted via the form will be sent to you by email.

You'll need to use some of the HTML code shown in the boxes below. You can copy and paste the code shown here, but you'll need to add your own formatting to make the form look like part of your page.

Before you start, please be aware of the following:

  • Your form won't work without the parts marked as required
  • You can use as many of the optional inputs as you like, but you should choose at least one (or there'll only be a submit button!)
  • Replace the parts in bold with your own names and values
  • See the w3schools web site for more on what you can do with <form> and <input> tags

Want to see how it all comes together? Click here for a full example of an email feedback form.

Required: Start the form

<form method="post" action="http://homepages.plus.net/cgi-bin/form">
<input type="hidden" name="recipient" value="Your Plusnet email address" />
<input type="hidden" name="subject" value="Title of the email sent by the form" />

The email address used on the recipient line must be your Plusnet email address. Addresses for other service providers won't work with this script.

Optional input: Single line text boxes

<input type="text" size="xx" maxlength="xx" name="example" />

Use these to ask simple questions that only need a short, single line answer (See large text boxes for longer responses).

To add other single line text boxes, make sure each one has a different name. The values for size and maxlength (xx) should be numbers.

Recommended input: Use single line text boxes to get information about the form submitter

<input type="text" size="xx" maxlength="xx" name="email" />
<input type="text" size="xx" maxlength="xx" name="realname" />

Use these to add details about the sender to the emails sent by the form script.

  • The email input will be used to set the from address on the submitted form
  • The realname input will be used as the sender's name on the submitted form

Optional input: Checkboxes

<input type="checkbox" name="Question 1" value="Answer 1" />Answer 1<br />
<input type="checkbox" name="Question 1" value="Answer 2" />Answer 2<br />
<input type="checkbox" name="Question 1" value="Answer 3" />Answer 3<br />

Checkboxes allow multiple answers to be chosen. In this example, each line represents one checkbox.

If you add more checkboxes, each line should have a different value. Use the same name for each line unless you want create a different group (e.g. answers for a different question).

Optional input: Radio buttons

<input type="radio" name="Question 2" value="Answer 1" />Answer 1<br />
<input type="radio" name="Question 2" value="Answer 2" />Answer 2<br />
<input type="radio" name="Question 2" value="Answer 3" />Answer 3<br />

Radio buttons allow one option to be chosen from a list. This example shows 3 buttons grouped together as Question 2.

If you add more buttons, each line should have a different value. Use the same name for each line unless you want create a different group (e.g. answers for a different question).

Optional input: Dropdown lists

<select name="Question 3">
<option>Answer 1</option>
<option>Answer 2</option>
<option>Answer 3</option>
</select>

Drop down lists allow one option to be chosen. This example shows 3 options grouped under one list as Question 3.

Lines 3,4 and 5 represent each option and you can add more by duplicating these lines. To use multiple dropdown lists, copy the whole block of code again and make sure the name is different.

Optional input: Large text boxes

<textarea rows="xx" cols="xx" name="Large text box">Enter text here if you want to</textarea>

Use large text boxes for longer input, e.g. comments and messages. To add more large text boxes, make sure each one has a different name.

The values for rows and cols (xx) should be numbers.

Required: Submit button, end the form
Optional: Clear form button

<input type="submit" value="Submit button name">
<input type="reset" value="Clear button name">
</form>

The first and third lines are required, otherwise your user won't be able to submit the form.

Example feedback form

You can use this code as base for your own form. Remember to replace the parts in bold and use your own Plusnet address for the recipient.

<form method="post" action="http://homepages.plus.net/cgi-bin/form">
<input type="hidden" name="recipient" value="yourname@username.plus.com" />
<input type="hidden" name="subject" value="Example email feedback form" />
<p><strong>Your Name:</strong></p>
<input type="text" size="15" maxlength="30" name="realname" />
</p>
<p><strong>Your email address:</strong></p>
<input type="text" size="15" maxlength="30" name="email" />
</p>
<p>Please tell us what you thought about this example feedback form</p>
<input type="radio" name="Thoughts" value="It's great!" />
It's great!<br />
<input type="radio" name="Thoughts" value="It's OK" />
It's OK<br />
<input type="radio" name="Thoughts" value="I don't Like it" />
I don't Like it<br />
<p>Do you have any other feedback?</p>
<textarea rows="15" cols="40" name="Other comments">Enter your comments here</textarea>
<p>Thanks for your time, click the button below to submit your feedback.</p>
<input type="submit" value="Submit your feedback">
</form>

[Top]

2. Web site hit counter

To add a hit counter to your homepage, use the following HTML code:

<img src="http://homepages.plus.net/cgi-bin/counter?username_ss" />
  • Leave counter as it is to use the standard green counter (as per the table below) or replace it with one of the counter names in the table below to use a different style
  • Replace username with your own Account Username (the one you log into this site with)

All of the counter styles use the same log file, so you can change styles without losing your hit count.

Counter name Counter preview
counter Counter
count_loncount_lon
count_odometercount_odometer
count_binkycount_binky
count_brushcount_brush
count_draculacount_dracula
count_dynocount_dyno
count_eleccount_elec
count_embosscount_emboss
count_flamecount_flame
count_greencount_green
count_purplecount_purple
count_redcount_red
count_copcount_cop
count_yellowcount_yellow
count_cheesycount_cheesy

How to add your counter to a secure (https) page

To place a counter on a secure page, use https:// instead of http:// both in the code for the counter and to reference the page containing the counter; i.e. use <a href="https://homepages.plus.net/username/pagewithcounter.html">Your counter page</a> to link to the page and <img src="http://homepages.plus.net/cgi-bin/counter?username_ss"> in the counter page source.

The homepages.plus.net/username version of your web address must be used.

[Top]

This page last updated 2nd March 2011

Did you find this page helpful?

Yes No Maybe