![]() |
|
|
|
||||||||||
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
I have 3 pages a.php ,b.php and c.php .How can I use the variable of b.php in c.php
a.php Code:
<script type="text/javascript">
var width;
width = screen.width;
if (width > 0) {
location.href = "b.php?width=" + width;
} else
exit();
</script>
<script type="text/javascript"> var width; width = screen.width;
if (width > 0) { location.href = "b.php?width=" + width; }
else exit(); </script>
b.php php Code:
php Code:
|
|
#2
|
|||
|
|||
|
Hi..
you can use cookie to store value.. Quote:
__________________
Thanks, Sam
Last edited by ksamir2004; May 9th 2008 at 1:41 am. |
|
#3
|
|||
|
|||
|
When a visitor visits c.php I want php to go to b.php and send the variable to c.php ,Is that possible using cookies
|
|
#4
|
|||
|
|||
|
As per my knowledge yu can use cookie to store value.
__________________
Thanks, Sam
|
|
#5
|
|||
|
|||
|
use sessions, much simpler and your not sending your data across the net multiple times
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NEED help to pass javascript variable to php | psyphil | Programming | 1 | May 9th 2008 4:25 am |
| how to pass javascript variable into php session | goutam.dutta123 | PHP | 6 | Oct 16th 2007 12:51 am |
| easy ? for you php heads pass a variable create a directory | kool-aid | PHP | 1 | Oct 8th 2007 7:48 pm |
| Javascript variable into php variable without updating page? | colin008 | JavaScript | 3 | Aug 9th 2007 4:01 am |
| is it possible to pass a php variable to asp code | white10 | PHP | 6 | Apr 20th 2007 5:09 am |