Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

call one cgi script to another

by aurora26 (Initiate)
on Mar 13, 2012 at 06:12 UTC ( [id://959247]=perlquestion: print w/replies, xml ) Need Help??

aurora26 has asked for the wisdom of the Perl Monks concerning the following question:

hello, i'm new to cgi scripting. I wanted to know how can i call another cgi script from a cgi script when clicked on a submit button. Please somebody give a example or format.. Thanks in advance..

Replies are listed 'Best First'.
Re: call one cgi script to another
by Anonymous Monk on Mar 13, 2012 at 06:52 UTC
      Thank u for ur reply...but nowhere i got any reference to call a cgi script when i clicked on a "button" in another cgi script... it was something like this in html.... <input name="btnSearch" type="button" value="Search" onclick="search()" style="width: 120px" /><input name="btnAdd" type="button" value="Add New" style="width: 106px" onclick="showDataSubmitForm() " /><input name="btnDump" type="button" value="Dump" onClick='dump()' style="width: 123px" /> how can i write the same in cgi??????

        Thank u for ur reply...but nowhere i got any reference to call a cgi script when i clicked on a "button" in another cgi script...

        I just gave it to you, both a word explanation, and link to example

        how can i write the same in cgi??????

        print

Re: call one cgi script to another
by planetscape (Chancellor) on Mar 13, 2012 at 08:29 UTC
Re: call one cgi script to another
by sundialsvc4 (Abbot) on Mar 13, 2012 at 13:21 UTC

    Start by putting Perl (or PHP, or Ruby, or...) aside, and read some generalized on-line texts about how CGI programming works.   Then, if you are using Perl, surf to various CPAN modules such as, say, CGI::Application or even Catalyst which will bring you as close as possible to your actual destination while requiring as little original-coding work from you.   The very best way that I know how to learn how to do anything is by studying existing examples (either the documentation or the code itself).   Observe not only how they work, but their description of their general approach to the entire problem (which will include many aspects that you have not yet “stumbled into upon” ... this being the entire point).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://959247]
Approved by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found