Question : Write in file

Hello. In my form i have 5 e-mail fields. I've done it in this way:
 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
<table width="349">
  <tr>
    <td width="169" align=right>E-Mail:: </td>
    <td width="146" align=left><input type=text size=25 name="mail3" value=""></td>
  </tr>
</table>
<table width="349">
  <tr>
    <td width="169" align=right>E-Mail:: </td>
    <td width="146" align=left><input type=text size=25 name="mail4" value=""></td>
  </tr>
</table>
<table width="349">
  <tr>
    <td width="169" align=right>E-Mail:: </td>
    <td width="146" align=left><input type=text size=25 name="mail5" value=""></td>
  </tr>
</table>
<table width="349">
  <tr>
    <td width="169" align=right>E-Mail:: </td>
    <td width="146" align=left><input type=text size=25 name="mail6" value=""></td>
  </tr>
</table>
<table width="349">
  <tr>
    <td width="169" align=right>E-Mail:: </td>
    <td width="146" align=left><input type=text size=25 name="mail7" value=""></td>
  </tr>
</table>


So now i need to click en button and save all e-mail addresses in a txt file. To save them i used

$_POST['mail1'],$_POST['mail2'], $_POST['mail3'], etc

I need there 2 things.
1.  Is there any chance to save this data without repeating 5 times $_POST['mail1'],$_POST['mail2'], $_POST['mail3']. etc?

2. How to save this email addresses in a txt file that every email must appear in a new line , something like this:

[email protected]
[email protected]
[email protected]

Etc.

Thank you

Answer : Write in file

Write your document and format your headings with heading styles 1, 2 etc. Set the numbering of these styles to be "Outline numbered". To do this, show the Styles and formatting pane, hover over a heading, click the down arrow, select Modify, click the Format button, click Numbering, select Outline numbered, and then select the style with the numbering of your choice.

After you have completed writing your document, go to the top of the document and click Insert - Reference - Index and Tables - Table of Contents tab. Choose your options as you require and hit OK.

Now you see a Table of contents. You can hold down the Ctrl key and click a row in the table of contents to jump to the respective paragraph.

If you want, create a page break between the TOC and the rest of the document.

see attached.

cheers, teylyn
Random Solutions  
 
programming4us programming4us