Newbie Session question
| From: | Chris Gray | Date: | Sun, 28 May 2000 15:09:31 +0000 |
| Subject: | Newbie Session question | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-15859@lists.php.net to get a copy of this message | ||
I am building some arrays and hyperlinks inside a loop
while($row = mysql_fetch_array($result)) {
$SApID[$n] = $pID;
etc.
<a
href="javascript:picker(<?=$n?>)"><?=$category?></a></font></td>
etc.
}
Can anyone suggest how to stuff the appropriate array value into a single
session array variable when a hyperlink is clicked?
I want to use something like
<SCRIPT LANGUAGE="JavaScript">
function picker(...$n...) {
$SESSION["pID"] = $SApID[$n];
etc., plus a redirect
but this will obviously never fly and as you can see my Javascript knowledge
is extremely basic.
Maybe there is a better way? It must be a single value session solution.
Yes, I tried looking through the archives. 8=)
Thanks,
Chris