Hi,
I'm creating a form and it will save it in to a text based database. Here's what I have:
First, user will fill out the form.
Second, after user filled out the form, a new directory will create with the email address that user provided. Let's say the user's email is john@mail.com, then the directory's name is john@mail.com. In that directory, there's 5 text files. One called user.txt which included user's username.
Problem:
Let's say another user filled out the form but I don't know how to search the directory to find to see if the username is taken or not. Anyone have any idea?
I'm creating a form and it will save it in to a text based database. Here's what I have:
First, user will fill out the form.
Second, after user filled out the form, a new directory will create with the email address that user provided. Let's say the user's email is john@mail.com, then the directory's name is john@mail.com. In that directory, there's 5 text files. One called user.txt which included user's username.
Problem:
Let's say another user filled out the form but I don't know how to search the directory to find to see if the username is taken or not. Anyone have any idea?