Posted by comp.lang.php on 02/27/06 16:55
Jerry Stuckle wrote:
> comp.lang.php wrote:
> > This is an urgent request (as always)
> >
> > [code]
> >
> > generate_admin_customer_position_dropdown($customerResult,
> > $customerResult[0]->id);
> > print_r($_SESSION["${projectAcronym}_customerSOWObjectArray"]);
> > [/code]
> >
> > This code will generate an HTML dropdown as well as set a $_SESSION
> > variable.
> >
> > I can verify the function works perfectly and in fact sets the session
> > variable every time. Problem is that I need to set and then
> > IMMEDIATELY get the session variable w/o redirection because
> > redirection is undoable at the portion of the PHP code that this must
> > work in.
> >
> > What do I do? Each time I try this the session variable is NOT
> > immediately available until a latter iteration renders it available but
> > far too late to be used.
> >
> > How do I set and then IMMEDIATELY get a SESSION variable? This is an
> > urgent request!!
> >
> > Thanx
> > Phil
> >
>
> Maybe just store it in a work variable? Why does it HAVE to come from
> the $_SESSION variable?
>
The function returns an HTML string variable, I don't know of any other
way in PHP to store it for latter (but immediate) retrieval other than
via $_SESSION.
Else, please explain "work variable" to me.
Phil
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
Navigation:
[Reply to this message]
|