Thinking through connecting the PHP, JS and HTML elements.