i'm trying to pass parameter with a html form in php, i have a php page that fill a html table:
$html = '';
$html .= '<form id="form1" action="search.php" method="post">';
$html .= '<tr>';
$html .= '<td>id</td>';
$html .= '<td><a href="javascript:;"onclick="document.getElementById(\'form1\').submit();">name</a></td>';
$html .= '<td>surname</td>';
$html .= '<td>language_id</td>';
$html .= '<td><span class="label label-success">Status_code</span></td>';
$html .= '</tr>';
$html .= '<input type="hidden" name="mess" value=\'Hello\'>';
$html .= '</form>';
i can see in my html the table, when i click on the href, the search.php page it's open, but i can't see the 'Hello' value, this is the search.php:
<?php
$name0 = $_POST['mess'];
echo $name0;
?>
what is wrong?
.=and just see what happens