NYCPHP Meetup

NYPHP.org

[nycphp-talk] handling forms (relative newbie)

Aaron Fischer agfische at email.smith.edu
Tue Sep 30 16:17:42 EDT 2003


Cool, I'm flipping to the sessions chapter now...  I'll probably opt 
for the URL rewriting feature, as it seems there is an increasing 
amount of user awareness and fear of cookies.

Only after bashing my head at least three times into a brick wall will 
I be back to ask for help.  :-)

Cheers,

-Aaron

On Tuesday, September 30, 2003, at 03:52 pm, Adam Maccabee Trachtenberg 
wrote:

> I advocate storing $_POST as a session variable. (Or the specific POST
> variables you want to keep.)
>
> You stuff the POSTed data into a temporary session and then retrieve
> it out of $_SESSION in the confirmation page and MySQL insertion
> page. Once it's done, session_destroy() it.
>
> Saves you all the hassle of, well, most of the above. If you're against
> cookies, there's always the URL rewriting feature of Session, which
> should be easy to ensure given the nature of your transaction.
>
> I'm all for using the simplest solution possible, unless you can't.
>
> -adam




More information about the talk mailing list