|
|
Joined: Sep 2000
Posts: 138
Member
|
Member
Joined: Sep 2000
Posts: 138 |
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<<<-
|
|
|
|
Joined: May 2000
Posts: 243
Member
|
Member
Joined: May 2000
Posts: 243 |
It's basically the same thing. Just use the same way you get the 'action' to get the 'num'. ------------------ Powered by ZCom Bulletin Boards
|
|
|
|
Joined: Sep 2000
Posts: 138
Member
|
Member
Joined: Sep 2000
Posts: 138 |
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<<<-
|
|
|
|
Joined: May 2000
Posts: 243
Member
|
Member
Joined: May 2000
Posts: 243 |
$number = param('num'); ------------------ Powered by ZCom Bulletin Boards
|
|
|
|
Joined: Sep 2000
Posts: 138
Member
|
Member
Joined: Sep 2000
Posts: 138 |
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 or like ------------------ * *** %###*###% ->>>Em8<<<- This message has been edited by Em8 on November 12, 2000 at 09:48 AM
|
|
|
|
Joined: May 2000
Posts: 243
Member
|
Member
Joined: May 2000
Posts: 243 |
Yeah do it like that: ------------------ Powered by ZCom Bulletin Boards
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|