UBB.Dev
Posted By: Em8 action& - 11/11/2000 7:57 PM
How would I make an addon to and action? Like instead of making a new sctipt and the same action like:
=======================
index.cgi?action=top
index2.cgi?action=top
=======================
How would I make it like:
=======================
index.cgi?action=top&num=1
index.cgi?action=top&num=2
========================

Ubb makes it look like that when doing: postings.cgi?action=newtopic&number=14

------------------
*
***
%###*###%
->>>Em8<<<-
Posted By: zanardi Re: action& - 11/11/2000 9:29 PM
It's basically the same thing. Just use the same way you get the 'action' to get the 'num'.

------------------
Powered by ZCom Bulletin Boards
Posted By: Em8 Re: action& - 11/11/2000 11:08 PM
But thats just it. I use CGI.pm to go like:
===========================
use CGI qw(:standard);
$action = param('action');
if ($action eq 'top'){
#do stuff
}
===========================

And I use the param. How else to I do this w/o the param???

------------------
*
***
%###*###%
->>>Em8<<<-
Posted By: zanardi Re: action& - 11/12/2000 5:11 AM
$number = param('num');

------------------
Powered by ZCom Bulletin Boards
Posted By: Em8 Re: action& - 11/12/2000 5:37 AM
EDIT: Its the first one. My index is now CGI, http://opena.virtualave.net/cgi-bin/index.cgi

So with the code should I use
Code
code:
or like
Code
code:

------------------
     *
    ***
 %###*###%
->>>Em8<<<-

This message has been edited by Em8 on November 12, 2000 at 09:48 AM
Posted By: zanardi Re: action& - 11/12/2000 7:28 PM
Yeah do it like that:

Code
code:

------------------
Powered by ZCom Bulletin Boards
© UBB.Developers