Hello,
I have a new project. I created a Excel file that calculate Solar Power requirement base on someone location and electric consumption. It works nicely.
Now I want to make a HTML model inspired from this file.
The Insolation information would be stored in a separate file. The user will have to provide me with it's city for the calculation to commence.
I don't know how to use the <FORM> tag in Perl to accept input from users. The first thing the user need to input is the city. I don't know what to put for ACTION ?
Questions : What is the value for ACTION? I want the form to activate a Sub routine in the script. Lets call it "Search_City_in formation".
Where will be store the value (the city's name)? Is it in the variable $Cities from the select drop list?
Thanks for your help,
Yves
I have a new project. I created a Excel file that calculate Solar Power requirement base on someone location and electric consumption. It works nicely.
Now I want to make a HTML model inspired from this file.
The Insolation information would be stored in a separate file. The user will have to provide me with it's city for the calculation to commence.
I don't know how to use the <FORM> tag in Perl to accept input from users. The first thing the user need to input is the city. I don't know what to put for ACTION ?
Code:
print qq~<form method="POST" [I]action="????"[/I]> <select size="1" name="Cities"> <option>Name</option> <option>Montreal</option> <option>Toronto</option> </select><input type="submit" value="Submit" name="B1"> <input type="reset" value="Reset" name="B2"></p> </form>~;
Where will be store the value (the city's name)? Is it in the variable $Cities from the select drop list?
Thanks for your help,
Yves
Comment