FatCow Web Hosting
 
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Web Directory

Go Back   Webmaster Forum > Designing and Developing Websites > Programming > PHP / MySQL

PHP / MySQL Discussions and help on PHP and MySQL.

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2008, 05:46 PM
brandono brandono is offline
WMG Newcomer
 
Join Date: May 2008
Posts: 43
iTrader: (0)
brandono is on a distinguished road
Default Using $_POST for entire stay?

When clicking submit on a form the information is saved in a variable named $_POST["name"]. How can I keep that variable in memory until the person actually leaves my site?

For Example:
Code:
<input type="text" name="name"><br>
<input type="submit" value="save for current session">
Then 3 pages later but still same domain (or while browser still open, eiter way) that submitted info can be called for again.

Thank you,
Moki
__________________
http://www.mofiki.com - Macro's and other Automation Software
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block

  #2 (permalink)  
Old 06-18-2008, 05:52 PM
ablaye's Avatar
ablaye ablaye is offline
WMG Sheriff

 
Join Date: Feb 2007
Posts: 281
iTrader: (0)
ablaye is on a distinguished road
Default

Well, you would need to use a cookie to track that the person is still navigating the website.
There are 2 two ways you can keep the variable(s). You can store in the database and retrieve it whenever you need during the user session.
You can also append all URLs with the variable name and data (?var_name=var_data) during the user session.
At any rate, you would need to track the visitor session through a cookie.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT. The time now is 01:17 PM.



Freelance Web Designers
Work At Home Forum
Ad Marketplace
Online Deals and Bargains
HostGator Reseller Hosting Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0