help please with this form broblem
Hello all
I have the following form
<FORM METHOD="POST" ACTION="">
<input name="checkbox" type="checkbox" value="checkbox" checked>
test1
<input name="checkbox2" type="checkbox" value="checkbox" checked>
test2
<INPUT NAME="name" TYPE=text id="name">
<INPUT NAME="email" TYPE=text id="email">
<INPUT NAME="city" TYPE=text id="city">
<INPUT name="submit" TYPE=submit id="Submt" VALUE="submit;">
which contains two checkboxes and other information, the problem I want to store the values entered by the user in three different text file.
1- If the user chose the first checkbox and enter his/her information the code will store the values to text a.
2- If the user chose the second checkbox and enter his/her information the code will store the values to text b.
3- If the user chose the two checkboxes (test1 and test2) and enter his/her information the code will store the values to text c.
I am new in PHP, could please helping me to solve this problem, which I have spent three days to solve it without any result.
Thank you in advance