diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-14 13:15:10 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-14 13:15:10 +0200 |
commit | 1a51b3797d4c3a846e47b105a5edcb8283726651 (patch) | |
tree | b30146cb3165a49d35b05a8e11c133b98ff7a597 /index.php | |
parent | 8aff80ee4f5a3cb3627e88b95a32921e7e8d7f84 (diff) |
submit name, some fixes
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -4,7 +4,13 @@ <title>Post-Editing Interface</title> <script src="js/jquery.min.js" charset="utf-8"></script> <script type="text/javascript"> - + var check_submit = function () { + if ($("#name").val()=="" || $("#key").val()=="") { + alert("Please enter a session key and a name.") + return; + } + document.sess.submit(); + } </script> <link rel="stylesheet" type="text/css" href="static/main.css" /> </head> @@ -13,16 +19,18 @@ <?php include("inc/header.inc.php"); ?> -<form method="get" action="interface.php"> - <strong>Please enter your session key:</strong> +<form method="get" name="sess" action="interface.php"> + <strong>Session key:</strong> <input type="text" id="key" name="key" style="width:8em" /> - Session type: + <strong>Name:</strong> + <input type="txt" id="name" name="name" style="width:12em" /> + <strong>Session type:</strong> <select name="ui_type"> - <!--<option value="g">graphical</option>--> <option value="t">text</option> + <option value="g">graphical</option> </select> -<input type="submit" value="Submit" /> +<input type="button" value="Submit" onclick="check_submit()" /> </form> <!--<div class="small" style="background:#eee;margin: 5em 0 5em 0;padding:.5em; max-width:25%"> |