Reply to Re: How to figure out if a page has already been loaded

Your name:

Reply:


Posted by Stefan Mueller on 09/29/23 11:32

>> But how can I read these numbers from my second frame with my PHP script?
>> Is that possible or how can I determine if my page has already been
>> loaded
>> once?
>
> You don't, use cookies or sessions
>
> www.php.net/manual/en/function.setcookie.php
> www.php.net/manual/en/ref.session.php

Thanks a lot for your hint.
I use now
===============================
session_start();

if (!isset($_SESSION["count_session"])) {
$_SESSION["count_session"] = 1;
}
else {
$_SESSION["count_session"]++;
}
===============================

> I thought I could save the first random numbers to my second frame (hidden
> text box) and if the user reloads the page my PHP script could use these
> saved random numbers.

Therefore I can do
if ($_SESSION["count_session"] == 1) {
generate new random numbers
store them somewhere (where to store them?)
} else {
use the already created numbers (where to store them?)
}

But where do I have to store my already created random numbers so I can use
them the next time the PHP page gets loaded.
PS: I don't like to use cookies

Stefan

[Back to original 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

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