Hey
I have a php script which has a browse button that lets the user pick the file. Once the file is picked it redirects to the same page outputting the name of the file picked as a string. The problem I am having is that the name of the file is not being printed to the screen. Can someone take a look to see wuts wrong with it?
Thanks
[PHP]<html>
<body>
<form enctype="multip art/form-data" action="browse. php" method="POST">
<input type="hidden" name="MAX_FILE_ SIZE" value="100000" />
Choose a file to upload: <input name="uploadedf ile" type="file" /><br />
<input type="submit" value="submit" />
</form>
<?php
echo("<br>This is browse.php<br>" );
$file_name = $_REQUEST['uploadedfile'];
echo("<br>This is the file that is selected (string)$file_n ame");
?>
</body>
</html>
[/PHP]
I have a php script which has a browse button that lets the user pick the file. Once the file is picked it redirects to the same page outputting the name of the file picked as a string. The problem I am having is that the name of the file is not being printed to the screen. Can someone take a look to see wuts wrong with it?
Thanks
[PHP]<html>
<body>
<form enctype="multip art/form-data" action="browse. php" method="POST">
<input type="hidden" name="MAX_FILE_ SIZE" value="100000" />
Choose a file to upload: <input name="uploadedf ile" type="file" /><br />
<input type="submit" value="submit" />
</form>
<?php
echo("<br>This is browse.php<br>" );
$file_name = $_REQUEST['uploadedfile'];
echo("<br>This is the file that is selected (string)$file_n ame");
?>
</body>
</html>
[/PHP]
Comment