Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: RE: Multi-Page Form Redirect-use session-register


Message #1 by "Julio Oliveira" <dblot@a...> on Tue, 28 Aug 2001 11:25:22 -0300
Hi
I have problems with this session_start I change it to
session_register($var)
where $var is and array asocitive like name=>"Julio",dir=>"Buenos Aires"
with this all work well..

I have problem i send you and example of my page...

Julio Oliveira
Buenos Aires - Argentina
Oliveira_julio@y...


-----Mensaje original-----
De: Richard Price [mailto:richard.price@f...]
Enviado el: martes, 28 de agosto de 2001 4:52
Para: professional php
Asunto: [pro_php] RE: Multi-Page Form Redirect


I have had to solve this one last week so i think its only fair to let you
into it :)
Use sessions to hold the data between php pages.
At the top of each page put a session_start(); to create or add that page to
the session.  then on the second and subsequent pages put:
session_register("name_of_var_1", "name_of_var_2");
etc for as many variables that were on the last few pages and you want to
keep.  you will then be able to access these variables as normal.
Please note this only works with php4.0 or greater.

hope that helps

richard price

  Return to Index