How do i add a variable to my function value? [RESOLVED]
Posted: Sat Jan 01, 2011 7:28 am
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?
sorry ive fixed this
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."/")Code: Select all
function returnimages() {
$dirname = "C:/inetpub/wwwroot/sean/media/".$_GET['dir']."/";