This is my code for passing values from HTML to perl ,my cgi-lib.pl and perl scripts are in cgi-bin folder but I am getting http 500 internal server error whilre executing plz help.
Code:
#!C:\Perl\bin
require "cgi-lib.pl";
&ReadParse(*input);
print "Content-Type: text/html\n\n";
print "<html> <head>\n";
print "<title>User Name</title>\n";
print "</head>\n";
print "<body>\n";
print "You typed: " . $input{'username'} . "\n";
print "</body> </html>\n";
<html
<head>
<title>My name form</title>
</head>
<body>
<form action="http://localhost/cgi-bin/name1.cgi" method="get">
My NAME:
<input type="text" name="username" />
<br />
<input type="submit" />
</form>
</body>
</html>
Comment