I have pasted my code below but can't seem to get it to work. What I'd like to achieve is when someone types something in the username box, I'd like it to echo below, but I'd like the function to check the field every second. Thank you!
Name: <input type="text" name="username" /><br />
<?php
$username = $_GET['username'];
function functionName() {
echo '<p>ID: ',$username, "</p>";
}
functionName();
?>