![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl - PostGreSql query | garric | UNIX and Linux Applications | 0 | 06-01-2008 12:17 AM |
| Query in perl | Dana Evans | UNIX for Dummies Questions & Answers | 2 | 11-21-2007 08:27 PM |
| perl query | bishweshwar | Shell Programming and Scripting | 1 | 04-30-2007 06:03 AM |
| Incorrect SQL query in perl | new2ss | Shell Programming and Scripting | 1 | 04-04-2006 12:26 AM |
| Query string assingment for other variable in PERL | maheshsri | Shell Programming and Scripting | 0 | 01-30-2006 01:45 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Perl CGI Query
Hi All,
This is quite a high level question so I appologise as if it sounds a bit woolly! I'm running a script via apache's cgi-bin that calls another Perl script (from a browser): Code:
http://192.168.000.000/cgi-bin/run_script.pl?SCRIPT=test.pl&text=RANDOM+TEXT&INPUT1=444444444444 Code:
$html =~ s/%(\w+)%/$enabled_yn{$1}/g;
Or, could I pause the output of the original script so that it waits for user input from the browser before showing the next portion of information? Am I asking too much from the Perl by itself should I be looking at some JavaScript (maybe AJAX'd) to do this? Many thanks, pondlife. www.AddAnImage.com |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
|
|
#3
|
|||
|
|||
|
HTML Template
Hi,
I can parse an output the whole of the information returned into one HTML file and print that but it's very long so it would be great to have the page(s) split - like with a NEXT prompt... But how would I split it? What would the HTML link look like? For added complexity the output comes between a header and footer that are called separately... (sorry this is becoming an HTML question rather than a Perl one). Thanks again, pondlife. www.AddAnImage.com |
|
#4
|
|||
|
|||
|
Quote:
Code:
<a href="http://192.168.000.000/cgi-bin/run_script.pl?SCRIPT=test.pl&page=2&text=RANDOM+TEXT&INPUT1=444444444444">next</a> |
|
#5
|
|||
|
|||
|
If my understanding of your question is right, It is possible for you to handle it with sessions, say CGI::Session. Data may be populated in the session once, and then those data may be displayed in chunks from a subsequent sequence of pages.
I hope I didn't misunderstand your question, but I really do not know the exact situation you are in. Also, having a script name directly embedded as a parameter in a URL is a severe security risk as it will open the possibility to execute any script right from a Web browser! |
|||
| Google The UNIX and Linux Forums |