I am wanting a script that users can enter various detials and upon clicking "add" it writes various details to various different files.
So, the users selects what they want using checkbox's, more then one can be selected.
Then they enter their details.Select this if you want this product 1 [*]
Select this if you want this product 2 [*]
Select this if you want this product 3 [*]
etc etc
Now the script needs to do the following...Your Name [enter name here]
Your Number [enter number here]
Credit [credit amount]
etc etc
1. Takes the user name (i.e John Smith) and convert it to john_smith.txt - for use further along.
2. See the Products selected and write the converted user name to a txt file like, product_1.txt product_2.txt..- which will contain info like this: john_smith.txt
joe_average.txt
etc etc
3. Write a file called john_smith.txt which contains the Phone number.
4. Write another file called john_smith.txt (diff directory) which contains the credit amount.
5. Now the product_1.txt and BOTH:john_smith.txt need to be set at CHMOD 666...
6. Also, product_1.txt May or may not already exist, if it doesn't then it needs to write it, if it does, it needs to ammend it, and if the user is already written in that file then it is not to write it at all...
any help will be muchly appreciated...