Image

Imagesqwilliam wrote in Imagephp

Hi everyone,
new to PHP and this community... it's great that livejournal can provide such a good environment for learning!

I'm doing my best not to nag already experienced people about this language, since i'll primarily be using only the more simpler side of it... I'm referring to the website where i can, and I'm reading a pretty poorly written php book (spelling and grammar errors right the way through it). After being taught all the basics of php, the for, while, if/elseif statements, variables, functions etc. i'm finally up to the $_POST method.

Pretty straight forward, you can use the POST method in forms and let php parse the necessary values to the specified webpage, using the $_POST['variablename'] array in the new page. Here's where I need help. I'm making a login screen, and to my understanding, the value that is parsed to the destination page only remains active during the transition of the pages, once the necessary php information is displayed on the new page, it's no longer stored anyware. What if I need to keep this value? in my project, the user needs to click on buttons in the destination page which will edit table values in a database (which I chose SQLite for this btw) which to my understanding, needs to refresh the page to do so. as a result, the information that was posted from that form in that login page i was talking about, no will no longer be displayed on the destination page! (Does that make sense?!)

I understand that there is some sort of SESSION function... but isn't that variable value stored on the server? this wouldn't be any good if i've got over 150 people logged in to the system at once (this is a business project)

my assumption is that the information needs to be stored in a text file, or even in a table in my database, but how!?

thanks in advance