hallo,
ich habe ein html Formular,
7 Eingaben sind es.
Diese übergebe ich an einer php Seite.
$ya = $_POST["ya"];
$yb = $_POST["yb"];
$yc = $_POST["yc"];
$yd = $_POST["yd"];
$ye = $_POST["ye"];
$yf = $_POST["yf"];
$yg = $_POST["yg"];
echo $ya; // Ausgabe paasst
// $cmd = "C:\\meinsender\mysender.exe " + $ya+ " "+ $yb+ " "+ $yc+ " "+ $yd+ " "+ $ye+ " "+ $yf+ " "+ $yg+ " ";
$cmd = "C:\\meinsender\mysender.exe 1 2 3 4 5 6 7 ";
echo $cmd;
exec($cmd);
So wird 1 bis 7 an mysender übergeben.
Warum geht das nicht?
$ya = $_POST["ya"];
$yb = $_POST["yb"];
$yc = $_POST["yc"];
$yd = $_POST["yd"];
$ye = $_POST["ye"];
$yf = $_POST["yf"];
$yg = $_POST["yg"];
echo $ya; // Ausgabe paasst
$cmd = "C:\\meinsender\mysender.exe " + $ya+ " "+ $yb+ " "+ $yc+ " "+ $yd+ " "+ $ye+ " "+ $yf+ " "+ $yg+ " ";
// $cmd = "C:\\meinsender\mysender.exe 1 2 3 4 5 6 7 ";
echo $cmd; // <<<<---- leer
exec($cmd);
ich habe ein html Formular,
7 Eingaben sind es.
Diese übergebe ich an einer php Seite.
$ya = $_POST["ya"];
$yb = $_POST["yb"];
$yc = $_POST["yc"];
$yd = $_POST["yd"];
$ye = $_POST["ye"];
$yf = $_POST["yf"];
$yg = $_POST["yg"];
echo $ya; // Ausgabe paasst
// $cmd = "C:\\meinsender\mysender.exe " + $ya+ " "+ $yb+ " "+ $yc+ " "+ $yd+ " "+ $ye+ " "+ $yf+ " "+ $yg+ " ";
$cmd = "C:\\meinsender\mysender.exe 1 2 3 4 5 6 7 ";
echo $cmd;
exec($cmd);
So wird 1 bis 7 an mysender übergeben.
Warum geht das nicht?
$ya = $_POST["ya"];
$yb = $_POST["yb"];
$yc = $_POST["yc"];
$yd = $_POST["yd"];
$ye = $_POST["ye"];
$yf = $_POST["yf"];
$yg = $_POST["yg"];
echo $ya; // Ausgabe paasst
$cmd = "C:\\meinsender\mysender.exe " + $ya+ " "+ $yb+ " "+ $yc+ " "+ $yd+ " "+ $ye+ " "+ $yf+ " "+ $yg+ " ";
// $cmd = "C:\\meinsender\mysender.exe 1 2 3 4 5 6 7 ";
echo $cmd; // <<<<---- leer
exec($cmd);
Kommentar