In message <[EMAIL PROTECTED]>, Mike Brandonisio <[EMAIL PROTECTED]> writes >Hi Pete, > >I think I'm confused now. if all you need to do is pass the code for a query >then clean up the $_GET['C'] or $_POST['C'] and use it in your query. no >need to store it if is a temporary variable. If you need to store it for >future use then set $_SESSION['s_C']. >Mike
I haven't got the code, I have rewritten it so many times, that I have become confused! (again <G>) I need each php page to be able to deal with multiple variables, some of which are changed from time to time. Most are to be remembered for the entire session. Some are set at the beginning of the session, some set in a URL, some set by FORMs. I am trying to figure out if I can get a global answer. The plan is: 1) If there is a POST, use that, and update the SESSION 2) If there is a GET, use that, and update the SESSION. (URL changes and FORM changes won't happen to the same variable on the same page) 3) Now use the SESSION, (it may have been set when the page opened, it may have just been changed) To use the SESSION variable within the page, I like to create a local variable with a similar name, to make for clearer coding. This is because the variables could have been set some time ago, or could have been just updated, and could be needed in the future. And it isn't complicated, it's just that I am missing it! -- Pete Clark http://www.hotcosta.com http://www.spanishholidaybookings.com Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
