Page 1 of 1

USING FORMS.. Passing into an array

Posted: Sun Aug 24, 2003 7:25 pm
by parkin
Hi..
i'm a little confused..
This is what I'd like to do.. When a user clicks "ok"... I'd like to get the variables from the form, eg: name (done that) then push it into an array.. When I go back to use the form again, it'll do the same thing and then push the seccond one into

Posted: Sun Aug 24, 2003 7:52 pm
by volka
when one request is served the script terminates (ok, it's the other way round, but anyway) and everything from the script ceases to exist.
When a second request is handled the script starts all over. There's no difference between the first and the second request ...except parameters that might have been passed by the client, like ?var1=val1..., posted data, cookies or other headers.
You can keep data persistent e.g. with sessions.
For an introduction have a read of http://www.zend.com/zend/tut/session.php