USING FORMS.. Passing into an array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
parkin
Forum Commoner
Posts: 25
Joined: Wed Jul 23, 2003 3:18 am

USING FORMS.. Passing into an array

Post 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
Last edited by parkin on Sun Aug 24, 2003 9:01 pm, edited 1 time in total.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply