Is there a condition in the form handler code specifying that certain values
must be set before processing the form?
Maybe add a form value like <input type="hidden" name="checkit"
value="check">
Then, in the PHP code, enclose the form handler code inside the following:
if(isset($_POST['checkit']) && $_POST['checkit']=="check")
{
///// handle the form here
}
<Bo*******@gmail.comwrote in message
news:09**********************************@56g2000h sm.googlegroups.com...
>
I am running PHP5 in Eclipse. I downloaded HTTP_UPLOAD from
pear.php.net to play with the functionality. They have a nice example
but it is not working for me...
Here is what is happening - the example includes a form where you
select a file and submit. When I run the code, though, it acts as if
I have already pressed the submit button and I always end up with the
error "No file was provided."
The form and the php code that responds to the submit are in the same
php file and I watch as I debug and it just goes right through
everything on the page without stopping. Same when run without
debug. Same thing when running from the command line. I have also
tried separating the form into one file and the php code into
another. Same deal.
So I am wondering if there is a problem with my PHP install or
something.
Anyone have any ideas?
Thanks