When accessing cgi scripts in firefox, The sent and clear buttons do not work-Linux general technology-Linux technology and application information. For details, refer to the following. Today, I encountered a problem when I learned the get method in the cgi script. The example is in the LINUX and unix shell programming guide. First, create the booka. cgi script with the following content :#! /Bin/sh # booka. cgiecho "Content-type: text/html" echo "" echo""Echo""# Call booka_result, cgi, when user hits sent! Echo" "Echo" cgi form "# text box, input assigned to variable name 'Contact 'echo" Your name:
"# Drop down menu selection assigned to variable name 'film' echo" "Echo"-- Pick a film -- "echo"A few Good Men "echo"Die Hard "echo"Red October "echo"The Sound Of Music "echo"Boys In Company C "echo"Star Wars "echo"Star Trek "echo""# Drop down menu selection assigned to variable name 'actor 'echo" "Echo"-- Pick Your Favourite Actor -- "echo"Bruce Willis "echo"Basil Rathbone "echo"Demi Moore "echo"Lauren Bacall "echo"Sean Connery "echo""Echo"
"# Check box variable names are 'view _ cine' and 'view _ vid' echo" Do you want films at ..
"Echo" Cinema "echo" On Video "echo"
"# Input assigned to variable name 'textarea 'echo" Tell what is your best film, or just enter some comments
"Echo" "Echo"
"Echo" "Echo""Echo""Echo""Create the booka_resule.cgi file and press the send button to execute the script. The content is as follows :#! /Bin/sh # booka_result.cgi # print out the web server env for a getecho "Content-type: text/html" echo "" echo"
"Echo""echo "Results from a GET form"echo "REQUEST_METHOD : $REQUEST_METHOD"echo "QUERY STRING : $QUER_STRING"echo "
"Both files are stored in the/usr/lib/cgi-bin directory, and the permission is set to 755 to access the first script in firefox. the following error occurs: however, pressing the send and clear buttons does not respond. It is in ubuntu. Other simple scripts without get can be displayed. I don't know whether firefox does not support the get method or the script itself. Thank you ~~