Jump to content


Photo

Sending variables in the header


  • Please log in to reply
1 reply to this topic

#1 Perad

Perad
  • Members
  • PipPipPip
  • Advanced Member
  • 287 posts

Posted 26 October 2006 - 11:09 AM

If i send a variable like this

http://localhost/dow...=show&down_id=5

How do i call it in the new script?

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 26 October 2006 - 11:14 AM

Using the $_GET array.

An example using the url you showed:
<?php
echo $_GET['action']; //will output "show"
echo $_GET['down_id']; //will output "5"
?>

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users