Welcome Guest, Not a member yet? Register   Sign In
Only upload if user set a value
#3

[eluser]LuckyFella73[/eluser]
You want to check if a FILE was selected so you have to check
the file array - for example:
Code:
<?php
if (isset($_FILES['logo']['name']) AND strlen($_FILES['logo']['name'])>0){
// upload here
}
?>


Messages In This Thread
Only upload if user set a value - by El Forum - 10-10-2010, 09:05 PM
Only upload if user set a value - by El Forum - 10-10-2010, 09:52 PM
Only upload if user set a value - by El Forum - 10-11-2010, 07:39 AM
Only upload if user set a value - by El Forum - 10-12-2010, 07:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB