Previous Thread
Next Thread
Print Thread
Rate Thread
#117021 03/23/2001 6:21 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
Code
code:

when i try to do that in my script, i wind up with a software error:

Can't call method "SM_char_" without a package or object reference at /home/site.com/cgibin/ubb/cp_smilie.cgi line 64.

any ideas as to why that is happening or a workaround? $svcnt holds a counter number... 0, 1, 2, 3... etc, that I am incrementing in a while () {}.

[ March 23, 2001: Message edited by: DPK ]

Sponsored Links
#117022 03/23/2001 6:25 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
if you can think of a better way to get a whole bunch of inputs on a form and analyze them, i'm all ears.

#117023 03/23/2001 6:38 PM
Joined: Jul 2000
Posts: 1,349
Ell Offline
Member
Member
Offline
Joined: Jul 2000
Posts: 1,349
Because you've got it bare-bones, it thinks SM_char_ is a command put it in double quotes like so:

Code
code:

but beware single quotes:

'SM_char_$svcnt' evaluates to SM_char_$svcnt whereas here you want "SM_char_$svcnt" which evaluates to SM_char_5 or whatever.

[ March 23, 2001: Message edited by: Borg ]

#117024 03/23/2001 7:40 PM
Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
thanx borg, that worked like a charm smile


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
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 20221218)