I have complicated problem enter image description here
In this image I created php page to get the data from mysql database and every message have id in database If I click on image of check mark we will go to another page to answer the message
I get the id already from the DB
"SELECT msgId.....
and store it in var from the next array
while($row = mysqli_fetch_array($result)){
..............
$msgIdVar = $row['msgId'];
and the check mark image is input form
<input type="image" src="img/chckMrk.jpg" alt="Submit Form" name="msgIdVar" value=""/>
when I try to pass the $row['msgId'] as a $_POST var, it didn't working with me!
<input type="image" src="img/chckMrk.jpg" alt="Submit Form" name="msgIdVar" value="' . <?php echo $msgIdVar; ?> . '"/>
also this doesn't work:
.....value="' . <?php echo $row['msgId']; ?> . '"/>
The problem here:
I want if we click the second message for example, send the id for this message to another page
How can i do it???