Results 1 to 1 of 1
Im trying to create a CGI Script that will give me 2 drop down menus.
Once the user has selected their choice and click the submit button i then require ...
- 07-05-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 4
CGI Script
Im trying to create a CGI Script that will give me 2 drop down menus.
Once the user has selected their choice and click the submit button i then require the script to use these "variables"/options to do some other bits and pieces.
Ive created the select tags but cant see how i process the form to create a variable that I can then use to run the required command.
So far I have ...
Code:#!/bin/sh echo "Content-type: text/html" echo # our html header echo "<html>" echo "<head><title>Resource Monitoring Tool</title></head>" echo "<body>" # print out the form echo "<select>" echo "<option value="firewall1">firewall1</option>" echo "<option value="firewall2">firewall2</option>" echo "<option value="firewall3">firewall3</option>" echo "<option value="firewall4">firewall4</option>" echo "<option value="firewall5">firewall5</option>" echo "</select>" echo "<select>" echo "<option value="05/07/2009">05/07/2009</option>" echo "<option value="06/07/2009">06/07/2009</option>" echo "<option value="07/07/2009">07/07/2009</option>" echo "</select>" echo "<button type="button">Submit</button>" echo "</body>" echo "</html>"


Reply With Quote