I am very new to php, and need help badly!
I have created a form with several text boxes like this:
<table>
<tr><td>First Name</td>
<td >Last Name</td>
<td>Email Address</td>
</tr>
<tr>
<td><input type="text" name="firstName1" ></td>
<td><input type="text" name="lastName1" ></td>
<td><input type="text" name="email1"></td>
</tr>
<tr>
<td><input type="text" name="firstName2" ></td>
<td><input type="text" name="lastName2" ></td>
<td><input type="text" name="email2"></td>
</tr>
<tr>
<td><input type="text" name="firstName3" ></td>
<td><input type="text" name="lastName3" ></td>
<td><input type="text" name="email3"></td>
</tr>
<tr>
<td><input type="text" name="firstName4" ></td>
<td><input type="text" name="lastName4" ></td>
<td><input type="text" name="email4"></td>
</tr>
</table>
What I want to do is to send me an email with the message in the following format:
First Last
Name Name Email
xxxx xxxx xxxx
xxxx xxxx xxxx
xxxx xxxx xxxx
xxxx xxxx xxxx
I cannot make the post to align but what I want to do is to have three columns (first name, last name, email).
I was wondering if I can use array and loop, but I am not sure what to do!!! I finally understood the "basic" mail function, but I am totally lost on this one.
Any help would be appreciated.
Thank you in advance,
😕