I have a form page custlookup.html:
Code:
<html>
<head>
<title> Forms </title>
</head>
<body>
<FORM METHOD="POST" action="http://192.1.1.1:83/cgi-bin/scopelookup.sh">
Choose your option
<br>
Enter device name <INPUT TYPE="TEXT" NAME="devid" SIZE=20 MAXLENGTH=25>
<p><br>
<INPUT TYPE="Submit" NAME="Submit This Form">
<INPUT TYPE="Reset" NAME="Clear">
</FORM>
</body>
</html>
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:
Code:
<FORM METHOD="POST" action="http://192.1.1.1: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.