RE: [phplib] How do I bind a variable to a form From: Philippe Paravicini (quietsky <email protected>)
Date: 06/05/01

The use of oohforms does not preclude you from 'manually' adding other input
tags to your form.
You could, for example, add a hidden input tag. I add these without using
the show_element() method, because oohforms likes to set hidden inputs to
null when doing a load_defaults().

Such variables can be retrieved on the receiving end by looking at the
environment variables hash HTTP_POST_VARS or HTTP_GET_VARS (check the names,
i am quoting from the top of my head), or by any other means you normally
use to retrieve your variables.

Alternatively, if you will be using this variable throughout your
application, you could register as a session or user variable.

Philippe Paravicini
eCommerce Developer

-----Original Message-----
From: White, Bob [mailto:rcwhite <email protected>]
Sent: Tuesday, June 05, 2001 11:32 AM
To: phplib <email protected>
Subject: [phplib] How do I bind a variable to a form

Hi All,
I need to pass a variable to the next form. All of the variables I am
passing are part of an oohforms element and I need to pass a variable I
create independent of the form element. How do I do that?

Bob White

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>