Jump to content

variable passing


jzdexta

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.