When accessing the cgi script in firefox, The sent and clear buttons do not work.

Source: Internet
Author: User
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 ~~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.