-
-
Save achrafkh/ac951d411372067f4fe6a6e09b53c29a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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