|
Web
Keywords: webspace | cgi | scripts
Summary: Guide to the ready-to-use scripts for email forms and web counters.
Advanced hosting services for our Residential and Business accounts are available from Pay As You Host - our hosting platform. You don't need to be a computer expert to benefit from your CGI service. You can turn your CGI service into a blog, forum or photo gallery by downloading free scripts from the Internet. For help with setting up CGI scripts on your Plusnet account, see the Webspace Help forum. Ready-to-use ScriptsThere are two scripts set up on the PlusNet servers that can be used without using your own CGI service. They are the Email Form Script and the Webcounter Script. Email Form ScriptThis is a CGI script that allows you to put a form on your web page. Information entered into the form and submitted will be sent to you by email. You will need to insert the following HTML into your page - the elements highlighted in bold should be changed to your own personalised settings. Start the form - this is required. <FORM METHOD="POST" ACTION="http://homepages.plus.net/cgi-bin/form"> <INPUT TYPE="HIDDEN" NAME="recipient" VALUE="e-mail address" /> <INPUT TYPE="HIDDEN" NAME="subject" VALUE="feedback from my web page" /> <INPUT TYPE="HIDDEN" NAME="realname" /> Note that the email address used on the 'recipient' line myst be your PlusNet address. Addesses for other service providers won't work with this script. Add a text box - you can have as mnay as you like, provided they all have different names. By using 'email' as the field name, whatever is entered will be the 'from' address on the form response e-mail. <INPUT TYPE="TEXT" SIZE="XX" MAXLENGTH="XX" NAME+"form field name" /> Add a check box input - select as many options as you like: <INPUT TYPE="CHECKBOX" NAME="checkbox" VALUE="option 1" /> <INPUT TYPE="CHECKBOX" NAME="checkbox" VALUE="option 2" /> <INPUT TYPE="CHECKBOX" NAME="checkbox" VALUE="option 3" /> Add a radio button input - only one option can be selected: <INPUT TYPE="RADIO" NAME="radio" VALUE="option 1" /> <INPUT TYPE="RADIO" NAME="radio" VALUE="option 2" /> <INPUT TYPE="RADIO" NAME="radio" VALUE="option 3" /> Add a drop down list - again, only one option can be selected: <SELECT NAME="select option"> <OPTION>Pick this one</OPTION> <OPTION>Or pick this one</OPTION> <OPTION>Or even pick this one</OPTION> </SELECT> Add a text area for longer input, such as comments and messages: <TEXTAREA ROWS="XX" COLS="XX" NAME="text area">Enter some standard text here if you wish</TEXTAREA> Now we can submit the form - don't forget this line, it's the most important one! <INPUT TYPE="submit" VALUE="Submit form"> <INPUT TYPE="reset" VALUE="Clear form"> Finally, end the form: </form> Make it secureIf you wish to use a secure form to collect sensitive information, you can do so using https:// instead of http:// both in the code for the form and to reference the page containing the form; i.e. use <a href="https://homepages.plus.net/username/form.html"></a> to link to the page and <form method="post" action="https://homepages.plus.net/cgi-bin/form"> in the form page source. The homepages.plus.net/username version of your web address must be used. Web Counter ScriptTo put a hit counter on your page, the HTML you require is:
We also have a selection of other counters available, they are accessed in a similar manner, apart from the address of the counter is slightly different. All of the counters use the same log file, so if you change the style of your counter, then you won't lose all of your hard earned hits.
Note that the final counter is 50% of the actual size.
This page last updated 16th January 2008
Has this page helped you solve your problem? Your feedback helps us to improve the help we provide.
Please note: We
cannot reply to individual feedback through Rate My Page. If you need
more help with a problem please use the Help
Assistant. Other customers will be happy to help you with most issues
at the Community Site
Forum.
|
RELATED ARTICLESSearch help pages
Browse A-Z help index
|
We sell broadband, phone, VoIP and more to homes and businesses in the UK. Winner of 9 out of 11 Categories in the 2008 USwitch survey. Winner of "Best Consumer ISP" at 2008 ISPA awards. Voted number 1 in the Broadband Choices 2008 survey.
© Plusnet plc All Rights Reserved. E&OE