diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-17 09:58:53 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-17 09:58:53 +0200 |
commit | 550748d07cb660c28d28e41eee256b3371d4ce62 (patch) | |
tree | d5236c6291806c1c3e4478d6d8cc738ddb1785a9 /index.php | |
parent | abcae4f39145863b4861588f885991b6dac662aa (diff) | |
parent | 27236ad14a621864475dc20cf882624d254b5dc9 (diff) |
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -5,7 +5,9 @@ <script src="js/jquery.min.js" charset="utf-8"></script> <script type="text/javascript"> var check_submit = function () { - if ($("#name").val()=="" || $("#key").val()=="") { + var name = $("#name").val().trim(); + $("#name").val(name); + if (name=="" || $("#key").val()=="" || !$("#key").val().match(/^[a-f0-9]{1,4}$/)) { alert("Please enter a session key and a name.") return; } @@ -22,12 +24,12 @@ <form method="get" name="sess" action="interface.php"> <strong>Session key:</strong> <input type="text" id="key" name="key" style="width:8em" /> - <strong>Name:</strong> + <strong>E-Mail:</strong> <input type="txt" id="name" name="name" style="width:12em" /> <strong>Session type:</strong> <select name="ui_type"> <option value="t">text</option> - <option value="g">graphical</option> + <!--<option value="g">graphical</option>--> </select> <input type="button" value="Submit" onclick="check_submit()" /> |