title: Using 'name' attribute in <a> tag to use in $_POST
body: <p>The field values are taken from the MySQL database.</p>
  
  <p>On clicking the submit button, it should echo the text-field value and the name of the file in <code>&lt;a&gt;</code> tag.</p>
  
  <pre><code>$files_of_signed_in_user = mysql_query("SELECT * FROM uploaded_files WHERE user_id = '$_SESSION[userid]' ");
  echo "Self uploaded files&lt;br&gt;";
  while ($row = mysql_fetch_array($files_of_signed_in_user)) {
    echo "&lt;form enctype = 'multipart/form-data' method='post'&gt;"
    . "&lt;a name='file_name' href='uploaded_files/".$row['file_name']."'&gt;".$row['file_name']."&lt;/a&gt;"
    . "&lt;input type='text' name='Emailid_to_be_sent' placeholder='Emailid' /&gt; "
    . "&lt;input type='submit' name='share_file' value='Send' /&gt; &lt;/form&gt;&lt;/br&gt;";
  }
  </code></pre>
  
  <p>When submit is clicked, the text input and filename are to be echoed</p>
  
  <pre><code>if (isset($_POST['share_file'])) { 
    echo $_POST['Emailid_to_be_sent'];
    echo $_POST['file_name'];          
  }       
  </code></pre>
  
  <p>I am aware that anchor tag does not support <code>name</code> attribute.</p>
  
  <p>Could you let me know how this can be achieved?</p>