troubleshooting Question

Checking file upload box

Avatar of avo42
avo42 asked on
PHP
5 Comments3 Solutions320 ViewsLast Modified:
Hi All

can you please help me with this question ?

ok if i was going to check if a text feild is empty or not i would use

<input type="text" name="txt_box"  id="txt_box" />

if ($_POST['txt_box']!=""){
echo "this text box is not empty";
}

But how do i check if the file upload box is empty or not



<input name="picture" type="file" id="picture" />

if (   ******* ['picture']!=""){
echo "file upload box is not empty";
}

ive tried doing this the same way as i would check a text entry but this dont work for me

all help appriciated
ASKER CERTIFIED SOLUTION
TedInAK

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros