<?php require_once 'parser.php'; $output = ''; if($_POST) { $parser = new parser(); $parser->run($_POST['text']); $output = $parser->getJSONOutput(); } ?> <!DOCTYPE html> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="content-type"> <script type="text/javascript" src="js/awesomechart.js"></script> <style> body{ background: #fff; color: #333; } a, a:visited, a:link, a:active{ color: #333; } a:hover{ color: #00f; }