Page 1 of 1

How do i add a variable to my function value? [RESOLVED]

Posted: Sat Jan 01, 2011 7:28 am
by tintumon
this page has javascript and php, but because of the variables starting with $ im thinking this part is php.
im trying to get the querystring value in 'dir' and put in in the returnimages function but its not working.
any ideas?

Code: Select all

$pdir=$_GET['dir'];
function returnimages($dirname="C:/inetpub/wwwroot/sean/media/".$pdir."/")
sorry ive fixed this

Code: Select all

function returnimages() {
   $dirname = "C:/inetpub/wwwroot/sean/media/".$_GET['dir']."/";