Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Jan 2011
    Posts
    136
    Thanks
    101
    Thanked 0 Times in 0 Posts

    1 form two actions

    How do I program a <form> </form>, so that when I click on the button, it will call two PERL cgi scripts?

    Thank you very much.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by camaross View Post
    How do I program a <form> </form>, so that when I click on the button, it will call two PERL cgi scripts?

    Thank you very much.
    nice, just out of curiosity how do you intend to do this?

    best regards

  • Users who have thanked oesxyl for this post:

    camaross (03-29-2011)

  • #3
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,872
    Thanks
    2
    Thanked 164 Times in 159 Posts
    A form can only call one script. That script could fork a child process to execute another script.

  • Users who have thanked FishMonger for this post:

    camaross (03-29-2011)

  • #4
    Regular Coder
    Join Date
    Jan 2011
    Posts
    136
    Thanks
    101
    Thanked 0 Times in 0 Posts
    I am trying to modify a code that I downloaded from the internet.

    The code says action="$SELF$", but I could not find the $SELF$ any where. So I am thinking to see if there is a way it can call another script.

    Quote Originally Posted by FishMonger View Post
    A form can only call one script. That script could fork a child process to execute another script.

  • #5
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by FishMonger View Post
    A form can only call one script. That script could fork a child process to execute another script.
    i have the feeling that op want to run them sequential not in paralel,

    best regards

  • Users who have thanked oesxyl for this post:

    camaross (03-29-2011)

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by camaross View Post
    I am trying to modify a code that I downloaded from the internet.

    The code says action="$SELF$", but I could not find the $SELF$ any where. So I am thinking to see if there is a way it can call another script.
    there is $SELF = self_url; somewhere?

    best regards

  • Users who have thanked oesxyl for this post:

    camaross (03-29-2011)

  • #7
    Regular Coder
    Join Date
    Jan 2011
    Posts
    136
    Thanks
    101
    Thanked 0 Times in 0 Posts
    Thanks for the hint. It's good to know that.

    Quote Originally Posted by oesxyl View Post
    there is $SELF = self_url; somewhere?

    best regards

  • #8
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by camaross View Post
    Thanks for the hint. It's good to know that.
    thanks for the thanks, this solve your problem?
    you can find more about it in man page or perldoc for CGI module,

    or here:

    http://search.cpan.org/~lds/CGI.pm-3.20/CGI.pm

    http://search.cpan.org/~lds/CGI.pm-3...E_INFORMATION:

    best regards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •