Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Variable

Status
Not open for further replies.

M626

Programmer
Mar 13, 2002
299
I am trying to create a IE page that users can select Perl scripts from check boxes and run them based on which check boxes they select. I have this so far but regardless of what I do the script always tries to run the “mycgi.pl” script. I don’t know how I can assign a variable to the check box to replace the “mycgi” for whatever script is selected.

<!-- begin content ----------------------------------------------------------------------------------------->
<FORM ACTION="../cgi-bin/mycgi.pl"><INPUT TYPE=CHECKBOX NAME="Script 1"> Script1<BR>
<INPUT TYPE=SUBMIT VALUE="submit">

<!-- end content ------------------------------------------------------------------------------------------>
<br>
<!-- begin content ----------------------------------------------------------------------------------------->
<FORM ACTION="../cgi-bin/cgi2.pl"><INPUT TYPE=CHECKBOX NAME="Spript 2"> Script2<BR><BR>
<INPUT TYPE=SUBMIT VALUE="submit">
<!-- end content ------------------------------------------------------------------------------------------>
<br>
 
You can not nest form tags... mycgi.pl would always run as it is in the main form tag...

[conehead]
 
TCH is right. Just put a </form> tag after each submit button and it should work.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top