RE: [PHP] How to question.
Dear Ryan, 2 possible scenarios I use : a. store the values in variables that you transfer back and forth using 'hidden' input b. store the values in variables that you register in the session you opened (fyi all my php files start with session_start regardless whether I use it or not). Wim -Oorspronkelijk bericht- Van: Ryan A [mailto:[EMAIL PROTECTED] Verzonden: Friday, May 30, 2003 11:37 AM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] How to question. Hi, I am a little confused with something that I am trying to implement (if you want to see the code tell me, but its pretty simple so i dont think you will need to) heres the idea, I want the client to be able to save up his choice into his account eg: his choice is 5 records (which transalates to me just saving the sql for those 5 records into his account) heres my problem, I am trying to make it so that if he tries to save his 5 records and he has not already logged in, he should be presented with the login page (have done this via sessions) *BUT* after he logs in he does not have to pick the 5 records all over again, it should remember his 5 records and automatically put it in. eg: 1.guy come to site and picks 5 records (he is not logged in) 2. gets redirected to the login page (but his 5 records or the sql for the five records are savedhow i dont know) 3.he logs in and the sql is entered into his accounts database for use later on. Sorry if that sounded confusing but if you get what i am trying to say you will see that its not really. Thanks for your help, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to question.
Hi, You can build some class which will hold some data and then you just need to sets all class variables and register instance of this class to the session variable. DS -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 11:37 AM To: [EMAIL PROTECTED] Subject: [PHP] How to question. Hi, I am a little confused with something that I am trying to implement (if you want to see the code tell me, but its pretty simple so i dont think you will need to) heres the idea, I want the client to be able to save up his choice into his account eg: his choice is 5 records (which transalates to me just saving the sql for those 5 records into his account) heres my problem, I am trying to make it so that if he tries to save his 5 records and he has not already logged in, he should be presented with the login page (have done this via sessions) *BUT* after he logs in he does not have to pick the 5 records all over again, it should remember his 5 records and automatically put it in. eg: 1.guy come to site and picks 5 records (he is not logged in) 2. gets redirected to the login page (but his 5 records or the sql for the five records are savedhow i dont know) 3.he logs in and the sql is entered into his accounts database for use later on. Sorry if that sounded confusing but if you get what i am trying to say you will see that its not really. Thanks for your help, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to question...
No. Wrapping in PHP or any other scripting language won't hide the HTML from the user. For the browser to render it, you HAVE to send the HTML to the browser. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 10:51 PM To: [EMAIL PROTECTED] Subject: [PHP] How to question... This may seem a bit unorthodox but I am wondering if there is a simple way to take an existing web site done in mostly html and wrap that code in php so that when a user goes to view source they get nadda... Remember I said a simple way. Thanks in advance. Jas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php