title: Submit the value of a <p> element when an html form is submitted
body: <p>I have this code: <code>&lt;p class = "foo"&gt;Text&lt;/p&gt;</code></p>
  
  <p>And I also have a form: <code>&lt;form action = "XXX.php" method = post&gt;&lt;/form&gt;</code></p>
  
  <p>However, how can I get the value of the <code>&lt;p&gt;</code> when I submit it, as the <code>&lt;p&gt;</code> element can be changed.</p>
  
  <p>So what I mean is to be able to post the value of the <code>&lt;p&gt;</code> when the user submits the form, and to be able to access it from that php file with: <code>$_POST['foo'];</code></p>
  
  <p>Thanks, I have tried to be as clear as possible.</p>