Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend:
Paging Form 1, Paging Form 2
Feb 25, 2003 @ 13:23:22

Over on Zend this morning, there's a new article posted - a Code Gallery Spotlight that talks about working with multi-page forms in PHP.

They start off talking about ways that you can pass the form information along, from form to form - things like: session variables, storing it in a database or flat file, and even just passing them as hidden fields that grow as the information does. They chose the last of these to write the spotlight on, and dive right in, showing you code that builds some of the hidden attributed for you when you go to the next page.

A setup like this can make the work of having to keep track of the values a snap, but when it comes time to do anything more complex with the values, watch out. Just echoing them is a lot simpler than doing something with them, and depending on your situation, you might benefit more from one of the other alternatives they mentioned.

Thanks to Ewald for the news submission...

tagged:

Link:


Trending Topics: