Aymiee has asked for the wisdom of the Perl Monks concerning the following question:
The $name holds this value ="Doe, John". When I call it from another page using param('system'), I am only getting "Doe,". "John" does not get concatenated with the name. HOWEVER, if I do hard code the name in the value:SystemName: <select name="system" > while ($pointer=$sth->fetchrow_arrayref) { $id = $pointer[0]; $s=$pointer[1]; $name=$$pointer[2]; print "<option value=".$name.">$name"; }
and call it from param('system'), then I get value = "Doe, John". Does anyone know why passing a string from a array does not get escaped correclty vs passing a hardcoded string?SystemName: <select name="system" > while ($pointer=$sth->fetchrow_arrayref) { $id = $pointer[0]; $s=$pointer[1]; $name=$$pointer[2]; print "<option value="Doe, John">$name"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Param
by bart (Canon) on Apr 23, 2005 at 05:14 UTC | |
|
Re: Perl Param
by tlm (Prior) on Apr 23, 2005 at 04:31 UTC | |
by Aymiee (Initiate) on Apr 23, 2005 at 04:35 UTC |