Send a Input, but retain Url formatting - Php
<p><strong>Code that Generates the HTML Form:</strong></p>

<pre><code>&lt;form action='inc/q/prof.php' method='post'&gt;
&lt;input type='text' id='addComment' name='addComment' tabindex='3' value='Enter comment' /&gt;
&lt;/form&gt;
</code></pre>

<p>*<em>Php Code that is referenced in <code>&lt;form action =</code>   *</em></p>

<pre><code>&lt;?php
// Insert Comments into Database that user provides
$comm = mysql_real_escape_string($_POST['addComment']);

// following line has changed:
$pID4 = filter_input(INPUT_POST, 'pID', FILTER_SANITIZE_NUMBER_INT);

$cID = mysql_real_escape_string($_POST['courseInfoDD']);
$username = "####";
$password = "####";
$pdo4 = new PDO('mysql:host=localhost;dbname=####', $username, $password);
$pdo4-&gt;setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
$sth4 = $pdo4-&gt;prepare('INSERT INTO Comment (info, pID, cID) VALUES(?,?,?);'); 
$sth4-&gt;execute(array($comm, $pID4, $cID ));

?&gt;
</code></pre>
