Perad Posted October 26, 2006 Share Posted October 26, 2006 If i send a variable like thishttp://localhost/downloads.php?action=show&down_id=5How do i call it in the new script? Link to comment https://forums.phpfreaks.com/topic/25159-sending-variables-in-the-header/ Share on other sites More sharing options...
Orio Posted October 26, 2006 Share Posted October 26, 2006 Using the $_GET array.An example using the url you showed:[code]<?phpecho $_GET['action']; //will output "show"echo $_GET['down_id']; //will output "5"?>[/code]Orio. Link to comment https://forums.phpfreaks.com/topic/25159-sending-variables-in-the-header/#findComment-114682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.