CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
how call a cgi script from another cgi script?

 



aurora
Novice

Mar 12, 2012, 4:43 AM

Post #1 of 5 (1474 views)
how call a cgi script from another cgi script? Can't Post

hello,
I am new to cgi, i want to create a webpage using only cgi(not using html) but i didnt understand how can i call another cgi script after clicking on a button. Please somebody tell me how can i do that?


aurora
Novice

Mar 12, 2012, 9:36 PM

Post #2 of 5 (1425 views)
Re: [aurora] how call a cgi script from another cgi script? [In reply to] Can't Post

Why nobody replying??????
Please somebody reply for this!!!!!


(This post was edited by aurora on Mar 13, 2012, 2:19 AM)


tbone587
User

Mar 13, 2012, 7:21 PM

Post #3 of 5 (1376 views)
Re: [aurora] how call a cgi script from another cgi script? [In reply to] Can't Post

You can use an html form with an action to call your next script.


wickedxter
User

Mar 13, 2012, 8:07 PM

Post #4 of 5 (1372 views)
Re: [aurora] how call a cgi script from another cgi script? [In reply to] Can't Post

this is a very basic example...

HTML page

Code
<form action=./script.cgi?hello method=post> 
<input type=hidden name=test value=12334>
<input type=submit value=NEXT>
</form>


script

Code
#!/usr/bin/perl 

use strict;
use CGI;

my $cgi = new CGI;

print $cgi->param('test') if $cgi->param('hello');



aurora
Novice

Mar 29, 2012, 5:22 AM

Post #5 of 5 (1209 views)
Re: [tbone587] how call a cgi script from another cgi script? [In reply to] Can't Post


In Reply To
You can use an html form with an action to call your next script.


but i want to run cgi script only, i am in a particular directory where i cant run html, i can only run cgi......i want to call another script after clicking on a button

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives