I have the following PHP post from HTML
The output from the mvsce -d 1234-56-78 -l 1 -s 1 command is displayed from bash as follows
TAR 332
PCXLA-TAACC
over the two lines.
The code below only ever outputs the 2nd line PCXLA-TAACC
<?php
$mvdate=$_POST['fdate'];
$mvlevel=$_POST['flevel'];
$mvsite=$_POST['fsite'];
$mvse = shell_exec ('/usr/local/bin/mvsce -d "'.$mvdate.'" -l "'.$mvlevel.'" -s "'.$mvsite.'"');
echo $mvse;
?>
How can I get the code to display both lines in a browser windows?
The HTML I use to post for the PHP
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<H1>makeVSCE Output</H1><br>
<br>
<br>
<form name="myForm" action="makevsce.php"
method="post">
Date (YYYY-MM-DD):<br>
<input TYPE="text" NAME="fdate"><br>
Level:<br>
<input TYPE="level" NAME="flevel"><br>
Sequence:<br>
<input TYPE="Sequence" NAME="fsite">
<input type="submit" value="Submit">
</form>
<br>
</body>
</html>
shell_exec()call for example.<html>[...]</html>tags and a body. Do you?. Btw: I edited my answer. Still you need to render a proper html page.