GUEST BOOK | ||
------------- Cut from here --------------------
|
||
Purpose:
This CGI reads the user filled informations from guest book HTML form and writes into your guest list HTML document file. |
||
How to use it in your
HTML: 1. Create your main index page file for your guest book (eg. index.html or guestbook.html) under your guest book web site. 2. Create another HTML file to add your guest lists (eg. guestlist.htm) under same directory and give "write" access also to this file. |
||
So in your guestbook.htm file you can add like:
in top of page: you can have welocome text messages and your web board logo images in middle: Insert your FORM <form method="post" action="/iicgi-bin/guestbook.pl"> And insert here all of your form elements for NAME,AGE, EMAIL,... for INPUT and TEXTAREA BOXES and SUBMIT, RESET BUTTONS |
||
And insert the following HIDDEN tags with your valid VALUEs into the same form | ||
<INPUT TYPE="HIDDEN" NAME="guest_book_dir"
VALUE="/myhome/guestbook"> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_file"
VALUE="guestlist.htm"> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_title"
VALUE="iindia Guest Book"> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_list_title"
VALUE="iindia Guest Book List"> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_list_bgcolor"
VALUE=""> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_list_txtcolor"
VALUE=""> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_list_linkcolor"
VALUE=""> |
||
<INPUT TYPE="HIDDEN" NAME="guest_book_list_vlinkcolor"
VALUE=""> |
||
<INPUT TYPE="HIDDEN" NAME="guest_namecolor" VALUE=""> </form> | ||
Description for each hidden varialbes used here:
|
||
guest_book_dir -> Main index page directory
name for your guest book |
||
guest_book_file -> Main index page file
name of your guest book |
||
guest_book_title -> Title of your guest
book |
||
guest_book_list_bgcolor -> your guest list html page background color (default is white) | ||
guest_book_list_txtcolor -> your guest
list html page text color(default is black) |
||
guest_book_list_linkcolor -> your guest
list html page hyperlink color (default is browser default color) |
||
guest_book_list_vlinkcolor -> your guest
list html page visited hyperlink color (default is browser default color)
|
||
guest_namecolor -> your guest name's color (default is black) | ||
create guestlist.htm under 'guestbook' directory. Give it 777 permission | ||
bottom of page: you can have again some text messages, hyper links, logo images... ------------- to here, to make a Form
-------------------- |
||
So You will get the following Form
|
||
WWW Bulletin Board | ||
------------- Cut from here --------------------
|
||
Purpose:
This CGI reads the user filled informations(from the HTML form) and writes his/her messages to HTML format under messages directory, which is as sub-sub directory of your main web board directory, separate for each user's message. So his/her message will be available as separate HTML filename(eg.1.html,2.html,....). And rest messages like his/her Name,Subject and current date,time, number of replie(s) for the same subject will be written into your main web board HTML file(e.g. index.html or default.html). So the informations listed in the web board will be available in the chronological order. |
||
How to use it in your
HTML: 1.In your main web board HTML page(eg. index.html), in top of page: you can have welocome text messages and your web board logo images |
||
in next line: some comment lines
like: <ul><!--begin--> <!--top: 0--> <li><a href="messages/0.html">My test topic</a> - <b>Liyon Rajkumar</b> <i>00:00:00 0/00/980) <ul> <!--insert: 0--> </ul> <!--end: 0--> </ul> |
||
in middle: Insert your FORM <form method="post" action="/iicgi-bin/wbord.pl"> And insert here all of your form elements for NAME, EMAIL,SUBJECT,MESSAGE,... for INPUT and TEXTAREA BOXES and SUBMIT, RESET BUTTONS | ||
2.Create your main webboard directory under your
website(eg. My website is available under "/myhome/htdocs" so I can create
my main webboard dir as "wbord".) So in your HTML form, you have to add
a line like: <INPUT TYPE="HIDDEN" NAME="wwwboard_basedir" VALUE="/myhome/htdocs/wbord/"> |
||
3.add the next line for your web board URL adddress
<INPUT TYPE="HIDDEN" NAME="wwwboard_baseurl" VALUE="http://www.mywebname.com/wbord/"> |
||
4.add the next line for CGI-BIN location
<INPUT TYPE="HIDDEN" NAME="wwwboard_cgi_url" VALUE="/iicgi-bin/wbord.pl"> |
||
5. add next line for your web board title <INPUT TYPE="HIDDEN" NAME="wwwboard_title" VALUE="My Perl Web Forum"> |
||
6. add next line for your web board index page
url <INPUT TYPE="HIDDEN" NAME="wwwboard_index" VALUE="http://www.mywebname.com/wbord"> |
||
7.Create a sub-directory(eg. messages) under your
main web board directory for writing all users posted messsages and give
"write" access also to this directory. <INPUT TYPE="HIDDEN" NAME="wwwboard_mesgdir" VALUE="messages"> |
||
8.Create a TEXT file (eg. number.txt) to store
number of posted messages under your main web board directory and give "write"
access also to this file . <INPUT TYPE="HIDDEN" NAME="wwwboard_numberfile" VALUE="number.txt"> |
||
9.add next line for your main index page file
name and give "write" access also to this file. <INPUT TYPE="HIDDEN" NAME="wwwboard_mesgfile" VALUE="index.html"> |
||
10.add next line for your FAQ file name. <INPUT TYPE="HIDDEN" NAME="wwwboard_faqfile" VALUE="faq.html"> </form> |
||
bottom of page: you can have again some text messages, hyper links, logo images... | ||
Create 'messages' directory under 'wwwboard_basedir' directory. Give it 777 permission Create a blank 'number.txt' file under 'wwwboard_basedir' directory. Give it 777 permission Give 777 persmission to index.html |
||
------------- to here,
to make a Form -------------------- |
||
So You will get the following Form
This white board is provided for use by any person offering and/or seeking any business oppurtunities . Please ensure not to place any advertisement
Post A Message! |
||
CGI Email fully configurable form | ||
------------- Cut from here --------------------
|
||
Purpose:
This CGI reads user filled informations(from HTML form) and sends them to single or two receipents mentioned in your HTML FORM's HIDDEN tag as email in a formatted output. a) use "sendto" HIDDEN tag to send your HTML form input to one single email address only . b) to send the same HTML form input to more than one email address, use "ccmail" HIDDEN tag also. |
||
How to use it in your HTML: | ||
in top of page: you can have welocome
text messages and your web board logo images |
||
in middle: insert your HTML Form <form method="post" action="/iicgi-bin/emailer.pl"> and you can have any number of fields and any type of fields like TEXT,CHECK,SELECT,RADIO, LIST etc boxes, including follwoing two or three hidden field types named: | ||
sendto ->
whom to send the mail to (eg. <INPUT TYPE="HIDDEN" NAME="sendto" value="mycompany@mymail.com"> |
||
sendtitle
-> title of the response page (eg. <INPUT TYPE="HID DEN" NAME="sendtitle" value = "My company HTML Registration Form"> |
||
sendsubject
-> for subject of the mail to be sent (eg. <INPUT TYPE="HIDDEN" NAME="sendsubject" value = ""My company HTML Registration Form Entry"> |
||
Following tag is optional , this tag can be omitted if you do not want a same email copy to be sent (CC:) to some other email addres. | ||
ccmail ->
to send a same copy to another email address(as you needed you can add or
ignore) (eg. <INPUT TYPE="HIDDEN" NAME= "ccmail" value = "myanotheremail@mymail.net"> </form> |
||
bottom of page: you can have again some text messages, hyper links, logo images... | ||
------------- to here,
to make a Form -------------------- |
||
So You will get the following Form
|