jzdexta Posted August 27, 2008 Share Posted August 27, 2008 Hi, I have a page(page1.php) which needs external values which are contained in another page(page2.php). page2.php is accessed from page1.php by opening a window all items selected in page2.php need to be posted to page1.php without loading page1.php in page2.php window. How do i achieve this? Kind regards - jd Link to comment https://forums.phpfreaks.com/topic/121565-variable-passing/ Share on other sites More sharing options...
webref.eu Posted August 27, 2008 Share Posted August 27, 2008 Variables are often past between pages via form submission, using either the GET or POST method. You then collect in the receiving page using either: $_GET['fieldname'] or $_POST['fieldname'] If this isn't appropriate for you, then you can save variables from one page into a MySQL database and retrieve them from the database on the second page. Rgds Link to comment https://forums.phpfreaks.com/topic/121565-variable-passing/#findComment-627008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.