This the code from my form:
<input name="userfile" type="file" id="userfile" size="87" maxlength="100" />
I have made sure that I have all permissions in a tmp directory to upload to.
I go back into the form to an Update or Add section and get the values like the persons name and address, etc. That all works - the data is passed the put method and gets to where I need it. But when it hits the section of code where I upload the pic I get the following error:
Notice: Undefined variable: userfile ...
I tried putting the first line in this code to no avail:
$userfile = $_POST['userfile'];
if (is_uploaded_file($userfile))
{
I'm stumped. Any help would be greatly appreciated.