<?php
session_start();
if(isset($_GET['nome'])){
$_SESSION['lista'][] = $_GET['nome'];
$_SESSION['lista'][] = $_GET['telefone'];
$_SESSION['lista'][] = $_GET['email'];
}
$lista = array();
if(isset($_SESSION['lista'])){
$lista = $_SESSION['lista'];
}
?>
...
<table style="width:100%" border="3">
<thead>
<tr>
<th>Nome</th>
<th>Telefone</th>
<th>E-Mail</th>
</tr>
</thead>
<tbody>
<?php foreach($lista as $lis): ?>
<tr>
<td><?=$lis?></td>
<td><?=$lis?></td>
<td><?=$lis?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
...
At the time of displaying in the table one line is occupied by names, and the next line by telephones, how can I solve this so that a line has name, phone and email?