Using the LlamaCom CGI Scripts
[ Counter | Form Mail | Search | Guestbook ]

This page will be updated as new scripts are added.

Please email us if you have any questions.

Hit counter

The hit counter will put a nice looking hit count on your page.

Use the control panel and select the "counter" option. Just pick a name for the counter, select one of the digit styles, and your counter will be created. You will then be given some HTML to place in your page.

If you find other digits you like, or design your own, email us and they can be added here. Digit Mania is a great place to find other digits.


Form Mail

The form mail script will let you create forms that email the results to you. Here is a simple example:

Email me!<BR>
<FORM METHOD=POST ACTION="http://llamacom.com/cgi-bin/formmail.cgi">
<INPUT TYPE=hidden NAME="recipient" VALUE="nobody@llamacom.com">
<INPUT TYPE=hidden NAME="subject" VALUE="Hello!">
<INPUT TYPE=hidden NAME="redirect" VALUE="http://llamacom.com/mailed.html">
<INPUT TYPE=hidden NAME="required" VALUE="email,message">
Email address: <INPUT TYPE=text NAME="email" SIZE=25><BR>
Message:<BR><TEXTAREA NAME="message" COLS=20 ROWS=10></TEXTAREA>
<BR><BR>
<INPUT TYPE=submit VALUE="Send"> <INPUT TYPE=reset VALUE="Reset">
<BR><HR>
</FORM>

The set of hidden inputs at the top specify where the email should go, the subject, and a URL to be shown after the email is sent. The "required" input specifies fields that must be filled out before the mail can be sent.

Any other input will be put into the text of the email. You can create any number of form fields, and they will also be put in the email. More documentation is available.
Search

The search script will search all of the .html files on your site. You first must create a search form, an example is the LlamaCom search form. Go there and use "view source" on your browser to see how the form is laid out.

Here is the form from the LlamaCom search page:

<FORM METHOD=POST ACTION="http://www.llamacom.com/cgi-bin/search.cgi">
<INPUT TYPE=HIDDEN NAME="title" VALUE="LlamaCom">
<INPUT TYPE=HIDDEN NAME="search" VALUE="http://www.llamacom.com/search.html">
<INPUT TYPE=HIDDEN NAME="basedir" VALUE="/home/httpd/html/">
<INPUT TYPE=HIDDEN NAME="baseurl" VALUE="http://www.llamacom.com/">
<INPUT TYPE=HIDDEN NAME="textcolor" VALUE="#F1F1F1">
<INPUT TYPE=HIDDEN NAME="bgcolor" VALUE="#000000">
<INPUT TYPE=HIDDEN NAME="linkcolor" VALUE="#87CEFA">

<CENTER>
<TABLE>
<TR>
<TD>Text to Search For:</TD>
<TD><INPUT TYPE=TEXT NAME="terms" SIZE=40></TD>
</TR>
<TR>
<TD>
Boolean: <SELECT NAME="boolean">
<OPTION>AND
<OPTION>OR
</SELECT>
</TD>
<TD>
Case <SELECT NAME="case">
<OPTION>Insensitive
<OPTION>Sensitive
</SELECT>
</TD>
</TR>
<TR>
<TD>
<INPUT TYPE=SUBMIT VALUE="Search"> <INPUT TYPE=RESET>
</TD>
</TR>
</TABLE>
</FORM>


You can basically copy the LlamaCom search page, and modify the values of the "hidden" inputs as follows:

title: The title of the search results page
search: The URL back to your search page
basedir: The directory where you want to begin searching, usually /home/username/public_html/
baseurl: The url that matches the directory, usually http://www.llamacom.com/~username/ or your domain, with a trailing slash.
textcolor: The color of the text on your results page
bgcolor: The background color on your results page
linkcolor: The link color on your background page

All of these values must be set in order for the search to work.

The AND/OR and Insensitive/Sensitive sections of your form are case sensitive. Make sure you copy that exactly as shown.
Guestbook

To setup your guestbook use the control panel. The files guestbook.cgi, guestheader.html, guestfooter.html, and guestadded.html will be copied into your public_html directory.

You can use your guestbook as-is by going to www.yourdomain.com/guestbook.cgi. You can also modify the html files any way you like.
Return


All text and original images copyright (C) 1998, 1999, 2005 Llama Communications call (877) 552-6220