|
Posted by Vince Morgan on 03/21/07 00:46
"Gladen Blackshield" <gladen@verizon.net> wrote in message
news:Oe_Lh.9244$zx.4647@trndny05...
> Hello All!
>
> Still very new to PHP and I was wondering about the easiest and simplest
way
> to go about doing something for a project I am working on. I would simply
> like advice on what I'm asking so I can go and learn it myself through
doing
> (best way for me).
>
> I am building a card game as a learning-project as it involves many (to
most
> of the) things that I would like to learn to do with PHP.
>
> This project is intended to be Flat-File only, no SQL connections. I'd
much
> rather not use cookies for this if at all possible.
>
> The project involves loading different pictures on the top of the page
while
> the game is being played. That's easy enough to do, but it forces a
refresh
> when the picture changes.
>
> which brings me to needing to find the porper solution to the following:
>
> I am needing to keep roughly 12 or so variables tracked during the game.
> This should be automatically parsed when the user clicks on 'DEAL' or
> whatever to go to the next turn (going to the next turn would result in a
> different picture being shown and thus force a refresh of the page)
>
I think you should take a look at AJAX, or simply the "httprequest" object.
That way you can send and recieve data from the server, and display it,
without having to refresh the page.
You could also create a session if you want your data to persist during the
game.
HTH
Vince Moran
Navigation:
[Reply to this message]
|