Hi,
I’m a newbie with php and I am having a problem creating a form and passing the input to another php page. The below code will generate the form and for form action if I use echo “<form action=’” . $_SERVER[‘PHP_SELF’] . “’>”; to test it by just looping it on itself works fine but when i try to get to pass the $_GET to page2.php I get 404 errors even seen a 401 forbidden. Can some one help me out and point out what I’m missing in my form action?
[php]
<?php function drawForm($value, $pwd, $files){ echo ""; echo " username : "; echo ""; echo "Password: "; echo "
"; echo "
"; if(is_dir("courses")) { $fileNames = scandir("courses"); foreach($fileNames as $fileName) { if($fileName != "index.txt" && $fileName != "." && $fileName != "..") { echo "$fileName
"; } } } echo ""; echo ""; } drawForm($value, $pwd, $file); <? [/php] Thanks! Scriber