Jump to content

Archived

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

Perad

Sending variables in the header

Recommended Posts

If i send a variable like this

http://localhost/downloads.php?action=show&down_id=5

How do i call it in the new script?

Share this post


Link to post
Share on other sites
Using the $_GET array.

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

Orio.

Share this post


Link to post
Share on other sites

×

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.