Previous Thread
Next Thread
Print Thread
Rate Thread
#101704 11/11/2000 12:57 PM
Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
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<<<-

Sponsored Links
#101705 11/11/2000 2:29 PM
Joined: May 2000
Posts: 243
Member
Member
Offline
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

#101706 11/11/2000 4:08 PM
Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
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<<<-

#101707 11/11/2000 10:11 PM
Joined: May 2000
Posts: 243
Member
Member
Offline
Joined: May 2000
Posts: 243
$number = param('num');

------------------
Powered by ZCom Bulletin Boards

#101708 11/11/2000 10:37 PM
Joined: Sep 2000
Posts: 138
Em8
Offline
Member
Member
Offline
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
Code
code:
or like
Code
code:

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

This message has been edited by Em8 on November 12, 2000 at 09:48 AM

Sponsored Links
#101709 11/12/2000 12:28 PM
Joined: May 2000
Posts: 243
Member
Member
Offline
Joined: May 2000
Posts: 243
Yeah do it like that:

Code
code:

------------------
Powered by ZCom Bulletin Boards


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)