problem of validation in form
Posted: Sat Oct 15, 2011 12:08 pm
can any one tell me how can i validate this line if i use it in form to upload file,
i want the validation above code like in php but i dont understand ho can i do it
i just want that user must upload a file that is been specified my me e.g in .jpg , .png format...
Code: Select all
<input type="file" name="images[]" class="wwIconified" value="upload"/><br />Code: Select all
if ( !upload )
{
error ="You must upload picture file";
}