Collapse

Announcement

Collapse
No announcement yet.

Code to upload an attachment in HTML page.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code to upload an attachment in HTML page.

    To upload the attachment in HTML page we will be requiring phpmailer file

    1. Edit the contact form code:
    Include the following code in contact-form page

    Code:
    <div id="mydiv">
      <form method="POST" action="phpmailer-fe.php" enctype="multipart/form-data">
      <table width="500" cellpadding="3" cellspacing="0">
      <tr>
      <td class="colone"><font color="white">Upload a File</td>
      <td class="coltwo">&nbsp;</td>
      <td class="colthree"><input type="file" name="file1" size="50"></td>
      </tr>
      </table>
    2. Download the phpmailer file from the following link:

    https://sourceforge.net/projects/php...e=typ_redirect

    3. In phpmiailer.fe file include the recipient email address

    This how we can upload an attachment in html form

Working...
X