Nightythehawk
Neues Mitglied
So, habe jetzt mal alle Ideen und Vorschläge versucht selber umzusetzen allerdings ohne derzeit noch ohne CSS und JS.
------------------------------------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Skill Calc</title>
</head>
<link href="stylesheets/common.css" type="text/css" rel="stylesheet">
<body>
<h1>Skill Calc</h1>
<form method="post" action="send.php">
<label for="val">1</label>
<input type="radio" value="1" id="val" name="ship">
<label for="med">2</label>
<input type="radio" value="2" id="med" name="ship">
<label for="str">3</label>
<input type="radio" value="3" id="str" name="ship">
<br>
<label>OB 1</label>
<select name="OB1">
<option value="no"> ?? </option>
<option value="DM" label="DM"> DM.</option>
<option value="FL" label="FL"> FL.</option>
</select>
<label>M 1</label>
<select name="M1">
<option value="no"> ?? </option>
<option value="12" label="12"> 12.</option>
<option value="34" label="34"> 34.</option>
<option value="56" label="56"> 56.</option>
</select><br>
<label>OB 2
<select name="OB2">
<option value="no"> ?? </option>
<option value="SI" label="SI"> SI.</option>
<option value="DC" label="DC"> DC.</option>
</select>
<label>M 2</label>
<select name="M2">
<option value="no"> ?? </option>
<option value="78" label="78"> 78.</option>
<option value="90" label="90"> 90.</option>
</select><br>
<label>OB 3</label>
<select name="OB3">
<option value="no"> ?? </option>
<option value="NS" label="NS"> NS</option>
<option value="NE" label="NE"> NE</option>
</select>
<label>M 3</label>
<select name="M3">
<option value="no"> ?? </option>
<option value="10" label="10"> 10.</option>
<option value="11" label="11"> 11.</option>
</select><br>
<label>OB 4</label>
<select name="OB4">
<option value="no"> ?? </option>
<option value="TS" label="TS"> TS.</option>
<option value="AS" label="AS"> AS.</option>
</select>
<label>M 4</label>
<select name="M4">
<option value="no"> ?? </option>
<option value="98" label="98"> 98.</option>
<option value="99" label="99"> 99.</option>
</select><br>
<input type="submit" value="create" />
<br />
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------
PHP-Script:
--------------------------------------------------
$ship = $_POST['ship'];
$OB1 = $_POST['OB1'];
$OB2 = $_POST['OB2'];
$OB3 = $_POST['OB3'];
$OB4 = $_POST['OB4'];
$M1 = $_POST['M1'];
$M2 = $_POST['M2'];
$M3 = $_POST['M3'];
$M4 = $_POST['M4'];
exec ( "/test.sh $M1 $M2 $M3 $M4 $OB1 $OB2 $OB3 $OB4 $ship" );
?>
--------------------------------------------------
die Daten werden an die PHP-Datei geschickt und werden angezeigt, soweit funktioniert es nur die Weitergabe an das Script macht noch Probleme.
Wie man an der Uhrzeit sieht versuche ich mir das irgendwie zusammen zu reimen aber jetzt heißt es erstmal gute Nacht!
------------------------------------------------------------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Skill Calc</title>
</head>
<link href="stylesheets/common.css" type="text/css" rel="stylesheet">
<body>
<h1>Skill Calc</h1>
<form method="post" action="send.php">
<label for="val">1</label>
<input type="radio" value="1" id="val" name="ship">
<label for="med">2</label>
<input type="radio" value="2" id="med" name="ship">
<label for="str">3</label>
<input type="radio" value="3" id="str" name="ship">
<br>
<label>OB 1</label>
<select name="OB1">
<option value="no"> ?? </option>
<option value="DM" label="DM"> DM.</option>
<option value="FL" label="FL"> FL.</option>
</select>
<label>M 1</label>
<select name="M1">
<option value="no"> ?? </option>
<option value="12" label="12"> 12.</option>
<option value="34" label="34"> 34.</option>
<option value="56" label="56"> 56.</option>
</select><br>
<label>OB 2
<select name="OB2">
<option value="no"> ?? </option>
<option value="SI" label="SI"> SI.</option>
<option value="DC" label="DC"> DC.</option>
</select>
<label>M 2</label>
<select name="M2">
<option value="no"> ?? </option>
<option value="78" label="78"> 78.</option>
<option value="90" label="90"> 90.</option>
</select><br>
<label>OB 3</label>
<select name="OB3">
<option value="no"> ?? </option>
<option value="NS" label="NS"> NS</option>
<option value="NE" label="NE"> NE</option>
</select>
<label>M 3</label>
<select name="M3">
<option value="no"> ?? </option>
<option value="10" label="10"> 10.</option>
<option value="11" label="11"> 11.</option>
</select><br>
<label>OB 4</label>
<select name="OB4">
<option value="no"> ?? </option>
<option value="TS" label="TS"> TS.</option>
<option value="AS" label="AS"> AS.</option>
</select>
<label>M 4</label>
<select name="M4">
<option value="no"> ?? </option>
<option value="98" label="98"> 98.</option>
<option value="99" label="99"> 99.</option>
</select><br>
<input type="submit" value="create" />
<br />
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------
PHP-Script:
--------------------------------------------------
$ship = $_POST['ship'];
$OB1 = $_POST['OB1'];
$OB2 = $_POST['OB2'];
$OB3 = $_POST['OB3'];
$OB4 = $_POST['OB4'];
$M1 = $_POST['M1'];
$M2 = $_POST['M2'];
$M3 = $_POST['M3'];
$M4 = $_POST['M4'];
exec ( "/test.sh $M1 $M2 $M3 $M4 $OB1 $OB2 $OB3 $OB4 $ship" );
?>
--------------------------------------------------
die Daten werden an die PHP-Datei geschickt und werden angezeigt, soweit funktioniert es nur die Weitergabe an das Script macht noch Probleme.
Wie man an der Uhrzeit sieht versuche ich mir das irgendwie zusammen zu reimen aber jetzt heißt es erstmal gute Nacht!