i have used sessions in my site
when a user from the current page clicks 'back' then the previous pge does not display rather it says refresh the page..
how can i get rid of this problem
about sessions
Moderator: General Moderators
-
bugthefixer
- Forum Contributor
- Posts: 118
- Joined: Mon Mar 22, 2004 2:35 am
about post and get
i know its not relevant to this forum but can u please tell me whats the difference between get and post.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
get values are passed in the url: www.foo.com/index.php?foo=bar&foo2=12
whereas post values are sent in the HTTP request header passed by the browser. So the url would remain www.foo.com/index.php
to see the get/post variables passed to your page(s):
to access the get variables from the first example:
whereas post values are sent in the HTTP request header passed by the browser. So the url would remain www.foo.com/index.php
to see the get/post variables passed to your page(s):
Code: Select all
<?php
print_r($_GET); // write all the stuff in get variables
print_r($_POST); // write all the stuff in the post variables
?>Code: Select all
<?php
if(isset($_GET['foo']))
{
echo $_GET['foo']."\n";
}
if(isset($_GET['foo2']))
{
echo $_GET['foo2']."\n";
}
?>http://wiki.devnetwork.net/
It's in the navigation of this site, at the very top of this page - a small link called "Wiki".
Regarding your original problem: check the manual on [php_man]header[/php_man], look at no caching.
It's in the navigation of this site, at the very top of this page - a small link called "Wiki".
Regarding your original problem: check the manual on [php_man]header[/php_man], look at no caching.