Hello,
I'm having trouble accessing a certain ftp folder through a variable using the ftp_nlist function. Pretty much I want to create a project and when I do so it will create an ftp folder with the projects name and I can click the project to view all the contents in it. So my code line that is giving me trouble looks like this:
$filelist = ftp_nlist($ftpconn, "/www/wjbe/$projname");
But the $projname variable isn't passing through and just ends up being null. the code from the page before is:
<?
$i=0;
While ($i < $num_rows) {
$ID = mysql_result($result, $i, "ID");
$name = mysql_result($result, $i, "name");
$date = mysql_result($result, $i, "date");
$desc = mysql_result($result, $i, "description");
echo "
Project name: <a href=\"viewer.php?$name\">$name</a> <br><br>
        Description: $desc <br><br>
        Posted on: $date <br><br>
<input type=hidden name=\"$name\" value=".urlencode($name).">
<input type=hidden name=\"projdesc\" value=".urlencode($desc).">";
$i++;
}
?>
Shouldn't the variable be passing through the hidden input fields? Any help would be greatly appreciated.