Re: Next GD headache
| From: | Aron Pilhofer | Date: | Fri, 26 Jul 2002 14:12:10 +0000 |
| Subject: | Re: Next GD headache | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14967@lists.php.net to get a copy of this message | ||
> 1: The same way you registered the first variable!
So...
session_start();
session_register("var1");
session_register("var2");
??
> 2: in the url itself:
> <IMG "SRC=graph_gen_page.php?paramater1=12¶meter2=14¶mater3=7">
Ugh! Of course. I hadn't even considered that. Duh. It didn't even occur to
me that you can pass variables to an image source... but why not? Thanks.
> > -----Original Message-----
> > From: Aron Pilhofer [mailto:aronpilhofer@yahoo.com]
> > Sent: 25 July 2002 23:40
> > To: php-windows@lists.php.net
> > Subject: [PHP-WIN] Next GD headache
> >
> >
> > Short question: I can't find this in the docs anywhere. Is it possible
to
> > register more than one session variable at a time? If so, what is the
> > syntax?
> >
> > Long question: I am trying to generate a bar chart to accompany
> > some figures
> > I calculate. I have the code to generate the bar chart in a separate
page,
> > and I call the script as an image. So far so good. The thing I
> > can't figure
> > out is how best to pass variables to the graphic code. I thought about
> > setting them as globals, but I thought that might be problematic in some
> > way. The only other idea I had was to set them as session variables --
and
> > that works, but it strikes me as (i dunno) inelegant???
> >
> > Suggestions anyone?
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>