GeckoNZ
IS-IT--Management
- Jul 23, 2001
- 31
Hi, I am trying to select a file from a form and then pass this filename to another function for processing. The the filename seems to end up as something like ... /tmp/php123XYZ
snippets of code :
(from the form)
echo " <form method=\"post\" ENCTYPE=\"multipart/form-data\" action=\"" . $PHP_SELF . "\">";
echo " <input type=\"file\" name=\"LoadFile\" size=20 maxlength=50>";
echo " </form>";
..and something as simple as :
echo "file is : $LoadFile <br>";//for debugging
displays this /tmp/php123XYZ filename rather than that selected.
Thanks ...Geoff
snippets of code :
(from the form)
echo " <form method=\"post\" ENCTYPE=\"multipart/form-data\" action=\"" . $PHP_SELF . "\">";
echo " <input type=\"file\" name=\"LoadFile\" size=20 maxlength=50>";
echo " </form>";
..and something as simple as :
echo "file is : $LoadFile <br>";//for debugging
displays this /tmp/php123XYZ filename rather than that selected.
Thanks ...Geoff