I am trying to pass a variable to another page that is created after from an uploaded file.
I am trying to send the variable $photoLink as shown below:
<?php
$file_dir = "photos"; // No trailing slash at the end!
if ($done)
{
copy($fupload, "$file_dir/$fupload_name") or die("Upload failed.");
unlink($fupload);
$photoLink = "photos/". $fupload_name;
header("Location: insert_photos2.php?$photoLink");
}
?>
I am then trying to get variable on the next page using:
<?php echo $HTTP_GET_VARS['photoLink'] ?>
Can anybody tell me what I am doing wrong.
Thanks