Hello, Use a token and a database, I am using the following:
1. I setup a table called token_table with columns: 1. token_id - primary DB key -- auto incremented 2. token_name - actual token string 3. token_date - date created 4. token_userd - user id that created the token - since all my users require logins 5. token_data - data stored in the token. Then on the first page if you have some data that you need to pass between pages or multiple pages you create a token like: $token_name=md5(uniqid(rand(), true)); Then store the token plus all the added values in the db, now just pass the token between the pages with a form and hidden value or directly in the url (http://www.mydomain.com/nextpage.php?token_name='584358430548543043') Then on the "nextpage.php" $_GET['token_name'] will be the token_name you have stored in the DB. You can now pull all the information you need from the DB. I could store all the info in the $_SESSION variables but that would cause them to be loaded on every page regardless if you need them or not. Plus if you had a lot of users you should try and keep the $_SESSION variables as small as possible. I use $_SESSION for userid, username, email, role and the rest of the site data is transmitted via HTTP POST on form pages and via the token if it needs to be secured from the user. Michael. On Wed, 7 Jul 2004 08:49:01 -0500 Josh Close <[EMAIL PROTECTED]> wrote: > How can I post data without having it submitted from within a form? > > With get I can just add it to the url. Is there a php function for this? > > -- > -Josh > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- Michael Gale Network Administrator Utilitran Corporation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php