Forum Moderators: coopster & phranque

Message Too Old, No Replies

How to start with a simple Guest Book using CGI?

         

ikeen107

9:15 pm on Aug 3, 2007 (gmt 0)

10+ Year Member



Hi all,

I would like to create a simple guest book that allow me to notice when a user/visitor send me a message from that guest book. My guest book form includes the followings:

<form action="" method="POST" action="message_personal.php" enctype="multipart/form-data" target="_top">
<table>
<tr>
<td>Your first name:</td>
<td><input name="firstName" type="text" size="25" maxlength="50" /></td>
<tr>
<td>Your last name:</td>
<td><input name="lastName" type="text" size="25" maxlength="50" /></td>
</tr>
<tr>
<td>Your email:</td>
<td><input name="email" type="text" size="25" maxlength="50" /></td>
</tr>
<tr>
<td>Sex:</td>
<td><input name="sex" type="radio" value="Male" checked />
Male&nbsp;
<input name="sex" type="radio" value="female" />
Female</td>
</tr>
<tr>
<td>Subject:</td>
<td><input name="subject" type="text" size="25" maxlength="50" /></td>
</tr>
<tr>
<td valign="top">Your message: </td>
<td><textarea name="message" cols="30" rows="8"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td align="right">
<input name="Reset" type="reset" value="Reset" />
<input name="Submit" type="submit" value="Submit" /> </td>
</tr>
</table>
</form>

Could anyone help with a CGI script to start with that allows me to be notified of incoming messages from visitors into my email which contains users' details and messages from the above form.

Thank you in advance for your help.

Regards

ikeen107

perl_diver

3:24 am on Aug 4, 2007 (gmt 0)

10+ Year Member



use the guestbook script you can download from here:

[nms-cgi.sourceforge.net...]

ikeen107

3:50 am on Aug 4, 2007 (gmt 0)

10+ Year Member



Thank you for useful link!

I have another issue how to run this perl/cgi script on my local computer.

I have just installed IIS server in my machine running windows XP prof. The IIS server appears to run well when I test a page like this:

[localhost...]

but it does not run any scripting files like ASP and .cgi or .pl at all like this:

[localhost...] - the browser displayed like this:

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.

--------------------------------------------------------------------------------

Please try the following:

Click the Refresh button, or try again later.

Open the localhost home page, and then look for links to the information you want.
HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied: 'GetObject'
/localstart.asp, line 40

Browser Type:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

Page:
GET /localstart.asp

or

[localhost...] - the browser displays like this:

The website cannot display the page
HTTP 500
Most likely causes:
The website is under maintenance.
The website has a programming error.

What you can try:
Refresh the page.

Go back to the previous page.

More information

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

For more information about HTTP errors, see Help.


Could anyone help with that please?

Cheers

Ikeen107

perl_diver

9:08 am on Aug 4, 2007 (gmt 0)

10+ Year Member



google for a tutorial on how to setup that server to run cgi scripts. Or ask in IIS forum. I don't know much about IIS so can't help you with configuring it to run scripts.

radix

8:57 am on Aug 5, 2007 (gmt 0)

10+ Year Member



If you are not too much bound to IIS you could download a WAMP server to your computer and play with it. These packages install Apache, Perl, PHP, MySQL on Windows computers.

I tried UniformServer.com, not that bad. For more options:
[en.wikipedia.org...]