<?php $_POST['tval'] = "hey what's up"; if(isset($_POST['tval'])) { $text = explode(PHP_EOL, htmlspecialchars($_POST['tval'])); foreach($text as $line) { echo "<script>alert('". $line ."');</script>"; } }
You have javascript disabled. You will not be able to edit any code.