Forum Discussion
Altera_Forum
Honored Contributor
20 years agoCgi error in boa
Hello everyone. I've read all the topics about cgi scripts in boa. when i try to do a simple submit button tha will call a cgi script the server "thinks" writes: web site found, waitin...
Altera_Forum
Honored Contributor
20 years agoHere's how I implemented your functionality...
<html>
<head>
<title>CGI script test</title>
</head>
<body>
<form method="get" action="cgi-bin/test.cgi">
<input type="submit" value="ok">
</form> ## cgi-bin/test.cgi#
# ! /bin/sh
echo "Content-type: text/html\n\n"
echo
echo "The cgi script is working\n" I didn't use an actual executable so my solution is definitely slower since it's done via scripting but it does work. I also used the "get" method instead of the "post" method for the form. I'm not sure if the "post" method is properly implemented in boa for our distribution. Hope this helps.