Click here to Skip to main content
16,004,806 members
Home / Discussions / Web Development
   

Web Development

 
GeneralAnnoying <ul> tag Pin
Anonymous29-Feb-04 8:18
Anonymous29-Feb-04 8:18 
GeneralRe: Annoying <ul> tag Pin
John Kuhn1-Mar-04 15:48
John Kuhn1-Mar-04 15:48 
GeneralRe: Annoying <ul> tag Pin
theJazzyBrain2-Mar-04 1:25
theJazzyBrain2-Mar-04 1:25 
GeneralSSL Certificate Pin
eggie529-Feb-04 4:49
eggie529-Feb-04 4:49 
GeneralRe: SSL Certificate Pin
eggie529-Feb-04 15:20
eggie529-Feb-04 15:20 
GeneralRe: SSL Certificate Pin
Roger Wright29-Feb-04 15:38
professionalRoger Wright29-Feb-04 15:38 
GeneralSSI calling perl script + passing dynamic parameter Pin
lob28-Feb-04 21:06
lob28-Feb-04 21:06 
GeneralRe: SSI calling perl script + passing dynamic parameter Pin
perlmunger2-Mar-04 10:00
perlmunger2-Mar-04 10:00 
Why use SSI at all if you have perl at your disposal?

You're really using the wrong tool for the job here. SSI is really intended for adding simple dynamic information (e.g. dates, hit counters, document modification dates, etc.). It's support for variables, conditionals, and dynamic string manipulation (which you apparently need) are very limited if they exist at all.

It seems to me that the only way to do what you want is to dynamically load your page that contains the SSI. At that point, it seems just silly to be using SSI at all. PHP or Perl itself would be much more capable to do what you want.

Here's a couple of questions that may help if you're insistent on using SSI:

1. Where are you obtaining the category id from. Is it just hard coded in a hyper link? If so, then why not just make your hyperlink point the cgi itself passing the appropriate id directly?

2. Can you use perl or php along with SSI? If so, to do what you want would be as simple as:
PHP
<?php
$categoryID = $HTTP_GET_VARS["category"];
echo "<!-- #include virtual=\"/cgi-bin/info_by_category.pl?category=$categoryID\"-->\n";
?>


3. Can you get rid of SSI altogether? If so, just move your perl script code into a CGI that draws everything you need and then runs the info_by_category.pl code. The url would then just be:
HTML
<a href="/cgi-bin/info_by_category.cgi?category=1">Info</a>


Let me know if you need any clarification.

Best Regards.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralRe: SSI calling perl script + passing dynamic parameter Pin
Anonymous2-Mar-04 21:18
Anonymous2-Mar-04 21:18 
GeneralSlide Down Menus Pin
Jay228-Feb-04 14:06
Jay228-Feb-04 14:06 
GeneralFORM SUBMISSION PROBLEM Pin
Brendan Vogt27-Feb-04 22:09
Brendan Vogt27-Feb-04 22:09 
GeneralRe: FORM SUBMISSION PROBLEM Pin
Hesham Amin28-Feb-04 2:57
Hesham Amin28-Feb-04 2:57 
GeneralRe: FORM SUBMISSION PROBLEM Pin
Brendan Vogt29-Feb-04 22:49
Brendan Vogt29-Feb-04 22:49 
GeneralRe: FORM SUBMISSION PROBLEM Pin
lanying_wzw29-Feb-04 2:33
lanying_wzw29-Feb-04 2:33 
GeneralExpert only question...please help me Pin
aleang7227-Feb-04 12:31
aleang7227-Feb-04 12:31 
Generaladdress bar Pin
amit sebiz27-Feb-04 1:24
amit sebiz27-Feb-04 1:24 
GeneralRe: address bar Pin
hxxbin27-Feb-04 6:42
hxxbin27-Feb-04 6:42 
GeneralASP DataGrid Pin
mkdas7026-Feb-04 18:26
mkdas7026-Feb-04 18:26 
GeneralRe: ASP DataGrid Pin
Marcie Jones27-Feb-04 4:44
Marcie Jones27-Feb-04 4:44 
GeneralRe: ASP DataGrid Pin
mkdas7029-Feb-04 23:02
mkdas7029-Feb-04 23:02 
GeneralRe: ASP DataGrid Pin
Marcie Jones1-Mar-04 3:12
Marcie Jones1-Mar-04 3:12 
GeneralRefreshing a acess table using ASP Pin
pradeepnair8326-Feb-04 16:43
pradeepnair8326-Feb-04 16:43 
GeneralRefreshing a acess table using ASP Pin
pradeepnair8326-Feb-04 16:40
pradeepnair8326-Feb-04 16:40 
GeneralAccessing web services from ASP 3 Pin
almogaver26-Feb-04 4:52
almogaver26-Feb-04 4:52 
GeneralFind something! At last!!! :-D Pin
almogaver26-Feb-04 9:26
almogaver26-Feb-04 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.