Passing variable to another page via redirect

Hi Professionals

I have the following piece of code on my Upload page

<?php if ($result==1) header("Location: import1.php?$imagename=$imagename"); ?>

which then goes to import1.php
in my browser address bar it shows http://localhost/imp...ploads/ExtTypesTest.csv

In my import1.php file i have the following code which shows nothing?

echo "the filename is " . $imagename;

Alll it shows is “the file name is”

any ideas?
thanks in advance

Sponsor our Newsletter | Privacy Policy | Terms of Service