FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Pass varible with out URL and SESSION
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Pass varible with out URL and SESSION [message #179980 is a reply to message #179979] Mon, 24 December 2012 15:43 Go to previous messageGo to previous message
adrian is currently offline  adrian
Messages: 27
Registered: December 2012
Karma:
Junior Member
Scott Johnson <noonehome(at)chalupasworld(dot)com> wrote:

> On 12/24/2012 5:41 AM, Adrian Tuddenham wrote:
>> Andy <andy(at)NOSPAMmanyplay(dot)com> wrote:
>>
>>>> well exactly. There are only three ways to keep track of a browser state
>>>> between pages: cookie, GET or POST.
>>>
>>> In the words of Yoda "There is another"...
>>>
>>> You guys won't like it but I thought it worth mentioning that you can also
>>> use a hidden frame and store any variable to be passed back to the next
>>> content page.
>>
>> As a complete beginner, I would be grateful if you could elaborate on
>> that.
>>
>>
>
> As Jerry mentioned, you still have to use one of the 3 methods. POST,
> GET, COOKIE.
>
> If you use a frame, invisible or not, once you resend the header to load
> another page, from the root page or frame (does not matter), you still
> have to send variables as mentioned above.

Presumably there is nothing to stop you writing the variable to a file
and then reading it back on the next page?

The only problem, with a busy website, would be identifying whether the
same user is requesting that variable as the one who wrote it. Could
that be taken care of by storing an array in the file and associating
each variable with each user's IP number? As long as the IP number
didn't change during a session, this would select the wanted variable
for that user.


--
~ Adrian Tuddenham ~
(Remove the ".invalid"s and add ".co.uk" to reply)
www.poppyrecords.co.uk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: simple dating site
Next Topic: Current PHP implementation
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 02:45:43 GMT 2024

Total time taken to generate the page: 0.05856 seconds