Possible Duplicate:
Basic HTTP Authentication on iPhone
I have a PHP file in a directory of my website, let's name that directory "example". Within that directory is a PHP file. My app accesses that PHP file to store data in a database (i.e. www.website.com/example/file.php?task=register&something=blahblahblah...). This URL can obviously be accessed from a web browser and fake information can be inserted. So, I'll protect the directory with a username and password. How do I let the app know the username and password so that it can login? Is there an easy way to do this? Thanks for your help!