Consider this url:
/modules.php?op=modload&name=lessons&file=index&req=edit_exercise_form&lesid=58&exid=112
In my index.php file under the edit_exercise_form function I have the command
list ($lesid,
$exid) = pnVarCleanFromInput
('lesid',
'exid');
It works just fine. $lesid and $exid are returned correctly. Now consider this url:
modules.php?op=modload&name=lessons&file=index&req=edit_lesson_form&lesid=58
In index.php under the edit_lesson_form function I have the command
list ($lesid) = pnVarCleanFromInput
('lesid');
Here is where it gets weird and where I need some major expertise from someone in here. What gets returned as $lesid is always just the first digit. So if $ lesid is 58 then it gets returned as 5 even though the first
URL correctly returns it as 58.
The two urls come right after one another and use the same variable for creating the
URL.
One
URL is
<a href=\"$urlinsfunc=edit_lesson_form&lessonid=$lessonid\">
and the other is
<a href=\"$urlinsfunc=edit_exercise_form&lesid=$lessonid&exid=$exid\">
What could be happening here??? I am running .764.
thanks,
brian