I have a form page custlookup.html:
<title> Forms </title>
<FORM METHOD="POST" action="http://220.127.116.11:83/cgi-bin/scopelookup.sh">
Choose your option
Enter device name <INPUT TYPE="TEXT" NAME="devid" SIZE=20 MAXLENGTH=25>
<INPUT TYPE="Submit" NAME="Submit This Form">
<INPUT TYPE="Reset" NAME="Clear">
I would like to be able to take the input (devid) provided in the form on the webpage and execute the script scopelookup.sh with the devid appended as the case.
Should execute as follows on the server:
% ./scopelookup.sh $devid
I tried appending the method with the $devid but that doesn't seem to work:
<FORM METHOD="POST" action="http://18.104.22.168:83/cgi-bin/scopelookup.sh $devid">
Unfortunately, I'm not a developer, web page designer, or scriptor so your explanation in laymans terms is appreciated.