Hej igen!
hehe nu är det så att jag har kodat om gästboken. Så nu har jag ett annat problem, jag får ett internal server error. Antagligen så har jag inte configurerat Apache server rätt. Någon som kan hjälpa mig med detta? Jag bifogar felmeddelandet från webbserver och sedan skickar jag oxå med koden här nedan.
_____________________________________
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@icst.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.20 Server at www.icst.com Port 80
_______________________________________
#!/usr/bin/perl
use CGI:
$co = new CGI;
open (BOOK, =>>book.htm") or die "Can´t open the guestbook!";
seek (BOOK, -length($co->end_HTML, 2);
$date ='date';
chop($date);
$username = $co->param,('username');
$username =~s/</</;
$email = $co->param,('email');
$email =~s/</</;
$city = $co->param,('city');
$city =~s/</</;
$country = $co->param,('country');
$country =~s/</</;
$text = $co-> param('comments')
$text =~s/</</;
print BOOK
$co->h3("New Comments by", $username, " at ", $date, " from ", $city, " in the country of ", $country, " Contact user at ", $email,
$co->p,$text,),$co->hr,$co->end_HTML;
close BOOK;
print $co->header,
$co->start_html ( -title=>ICST´s Guestbook', -BGCOLOR=>'white',);
$co->center($co->h1('Thank you for your contribute to our guestbook!'));
"If you want to take a look in our guestbook", $co->a({href=>localhost/book.htm"},
"click here"),",",
$co->hr,
$co->end_HTML;