-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm_Confirmation.php
33 lines (32 loc) · 1.01 KB
/
Form_Confirmation.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$M1 = $_POST["M1"];
$M2 = $_POST["M2"];
$a = $_POST["a"];
$mta = $_POST["mta"];
$mtb = $_POST["mtb"];
$mtg = $_POST["mtg"];
// $pdflatex = new PhpLatex_PdfLatex();
if (empty($M1) or empty($M2) or empty($a) or empty($mta) or empty($mtb) or empty($mtg)) {
echo "Missing MESA paramters.";
}
// $pathToGeneratedPdf = $pdflatex->compileString('
// \documentclass{article}
// \begin{document}
// Hello from \LaTeX!
// \end{document}
// ');
}
?>
<html>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<body>
Mass of star 1: \(<?php echo $M1?> M_\odot\) <br>
Mass of star 2: \(<?php echo $M2?> M_\odot\) <br>
Orbital separation: \(<?php echo $a?> R_\odot\) <br>
Mass Transfer Alpha: <?php echo $mta?> <br>
Mass Transfer Beta: <?php echo $mtb?> <br>
Mass Transfer Gamma: <?php echo $mtg?> <br>
</body>
</html>