i want to pass a uid to next page through querystring.how i pass it and how i get it on next page?
+1
A:
i want to pass a uid to next page through querystring.how i pass it and how i get it on next page?
You can create a link like this:
<a href="page.php?var=value">Go</a>
The variable-value pair after ?
will create the query string. Later you can get the query string with $_GET
array like $_GET['var']
for example.
Sarfraz
2010-10-28 10:17:01
A:
There are several ways to do that:
For links: pass "uid" as GET parameter in all links:
<a href='something.php?uid=$uid ... '
For forms: pass "uid" as POST parameter, this can be done with
<input type='hidden' name='uid' value='$uid'>
Also, you may use cookies, see the following article for details: http://php.net/manual/en/function.setcookie.php
Kel
2010-10-28 10:21:40