UBB.Dev
Posted By: DPK.ducky.quack question about $in{} - 03/24/2001 1:21 AM
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 ]
Posted By: DPK.ducky.quack Re: question about $in{} - 03/24/2001 1:25 AM
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.
Posted By: Ell Re: question about $in{} - 03/24/2001 1:38 AM
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 ]
Posted By: DPK.ducky.quack Re: question about $in{} - 03/24/2001 2:40 AM
thanx borg, that worked like a charm smile
© UBB.Developers