You are here: Re: Where am I wrong? « All PHP « IT news, forums, messages
Re: Where am I wrong?

Posted by jukka on 01/07/06 14:48

Oujdeivß wrote:
> I'm "gluing" stuff together :)
>
> jukka wrote:
>
>> Oujdeivß wrote:
>>
>>> part1 stays active while part2 is called, after part2 finished, part1
>>> needs to act upon the results, and I need to keep the data collected
>>> in part1 intact.
>>>
>>> I'm thinking that sessions are a solution.
>>>
>>> I'm still reading, but thank you for helping.
>>
>>
>> Ummm, why do you need to go to a separate page? Why can't you obtain
>> the result in part1? (Or if you wanna do it in part2, you could
>> include() part2 in part1)
>> But I guess if you want to do it your way, what you should probably do
>> is encode the values to the url and then forward to part2, and in part
>> to encode the result to the url and the forward back to part1. Dunno
>> how to encode them though, sorry. Someone else will hopefully help you
>> with that :)
>
>

Whatever you want. But just header("Location:
http://www.site.com/part2.php?var1=stuff&var2=morestuff"); in part1.
Then in part2 you header("Location:
http://www.site.com/part1.php?result=whatever");

(Forget that urlencode thing, I was hallucinating)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация