•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 329,739 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,586 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 132 | Replies: 4
![]() |
i have a problem about sending variables through to other pages. I have done this before using forms to post the variables. I have tried to use the SESSION_START () function but that does not like the code i have used for the image resize on the page.
i have added a random number to an image so that if a new image is uploaded it cannont show the old images as the file will never have the same path.
what i need to know is what is the best way to get the variable on to the next page. I was looking at the $_GET function to add the variable to the url but the upload takes place in an iframe so this cannot be done.
what ither ways are left as i have exhausted my knowledge of passing this variable on. I have had a look at cookies but not sure if they can be used.
i have added a random number to an image so that if a new image is uploaded it cannont show the old images as the file will never have the same path.
what i need to know is what is the best way to get the variable on to the next page. I was looking at the $_GET function to add the variable to the url but the upload takes place in an iframe so this cannot be done.
what ither ways are left as i have exhausted my knowledge of passing this variable on. I have had a look at cookies but not sure if they can be used.
i have been looking at using $_SESSION but i keep finding conflicting information about it. I cannot use session_start() as it does not like some of the code on my pages. When researching the $_SESSION array it says in places that session_start must be used and in others says it can be used on its own and the variables will be available across the other pages.
do you know were i can find a good tutorial on this.
do you know were i can find a good tutorial on this.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
Similar Threads
- Pointers (archived tutorial) (C++)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- AJAX generated <select> and FIREFOX (JavaScript / DHTML / AJAX)
- Can a text link pass php variables? (PHP)
- SQL problem - table names as variables (MS SQL)
- This Should be Easy for You Guys! (Linux Servers and Apache)
- Pointers (C++)
- Sending form email (PHP)
- Zend PHP Certification (PHP)
- Using Search Engine Friendly PHP URLs (PHP)
Other Threads in the PHP Forum
- Previous Thread: Page Navigation
- Next Thread: Error: Data truncated for column 'COLUMN' at row X


Linear Mode