Forum Moderators: phranque
I want to send a value to a cgi script from a web page.
My html code is : <a href="/cgi-bin/value.sh?9">9</a>. But, I don't know how to write the cgi script to access the value when clicking on "9" (which is showing on the web page). Further I wish to access the value and send to a file say a.txt.
any body help me?
#!/bin/bash
Content-type:text/plain
echo $QUERY_STRING
echo $QUERY_STRING=/home/username/a.txt
it will only display the query_string on the webpage.
it could not store this value in the a.txt.
what's the wrong in my code. What I have to do.
Please help me.