Hello, I am doing a webpage that allows people update their information, eg. address, phone number and upload personal icon.
…
<input name=”personal_icon” type=”file”>
…
Is there any method that can test $_FILE[personal_icon] either empty or not? What I want is something like this
If(empty($_FILE[personal_icon]))
{
Update all the information and upload icon
}else
{
Just update information
}
And another problem is that, after I uploaded icon, the system will redirect back to page personal.php, but the icon can’t be displayed properly until I press refresh button. I had tried use meta with refresh, it doesn’t work at all.?
Thank you for your help