Skip to content

Instantly share code, notes, and snippets.

@achrafkh
Created October 18, 2016 23:28
Show Gist options
  • Save achrafkh/ac951d411372067f4fe6a6e09b53c29a to your computer and use it in GitHub Desktop.
Save achrafkh/ac951d411372067f4fe6a6e09b53c29a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>HTML Tables</title>
</head>
<body>
<div class="div">
<form action="" method="GET">
<label for="input">Texte</label>
<input type="text" name="input">
<input type="submit" value="Extract">
</div>
</form>
<hr>
<?php if (!empty($_GET['input'])) { ?>
<table border="2">
<tr>
<?php foreach (explode(" ", $_GET['input']) as $column) { ?>
<td> <?= $column ?></td>
<?php } ?>
</tr>
</table>
<?php } ?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment