|
| Hello,
I'm a student at Carleton and as a part of my course work I'm doing
CGI programming. So if you can help with my problem please reply me
asap.
Thanks.
After I installed the Apache server on my machine, I wrote a simple
html file with a form and called a simple script from the form.
When I run my form, I'm getting "Server Error - Bad URL"
What should I do to fix this.
--------sample.html----------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Sample one</title>
</head>
<body>
<form action = "http://localhost/cgi-bin/test.cgi" method = post>
<input type = "text" name = "text1" maxlength = "20" > name </input>
<input type="Submit" value="Go" align="MIDDLE"><br></input>
</form>
</body>
</html>
--------test.cgi-------------
#!c:\perl\bin\perl.exe
print "Content-type:text/html\n\n";
print "Hello World\n";
-----------------------------
|
|