Jump to content

[SOLVED] $_GET


acidglitter

Recommended Posts

Lets say theres an address like this:

 

www.mysite.com/page.php?id=2

 

If you went to page.php, to get the id you would just go $_GET['id'];

 

BUT what if I wanted to do something like this on another page called home.php:

 

$url="www.mysite.com/page.php?id=2";

 

$id = $_GET['id'] from $url;

 

So the home page could show that the id is 2 without actually going to page.php.. Does anyone know if something like this is possible and how to do it?

Link to comment
https://forums.phpfreaks.com/topic/91468-solved-_get/
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.