Checking Fields
Hello, I actually have 2 questions. The first is I am trying to make a scirpt that will make sure that a file field is filled in. For normal text or password fields I use I tried that and I also tried
Code:
if (strlen($whatever) < 1) {
Neither one worked out. I am guessing it is because you can not check an image fields contents because it is made for uploading. Is there a way I can check to make sure it is filled in?
Also, is there a way to have a search look for anything that looks has a few letters matching? I am thinking of using eregi(), but I am trying to search a mysql database and do not know what I need to search in (the sting that I search for the pattern within it). How can I do this?
Thanks
Last edited by Titan85; 04-23-2007 at 12:48 AM.
Thanks DD, you saved me countless times
Bookmarks