Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>9 Block Plotter</title>
- <meta name="description" content="Hello World">
- <!-- Latest compiled and minified CSS -->
- <link rel="stylesheet" href="./css/bootstrap.min.css">
- <!-- Optional theme -->
- <link rel="stylesheet" href="./css/bootstrap-theme.min.css">
- <style>
- .form-group{
- padding: 10px;
- }
- body {
- padding-top: 65px;
- }
- </style>
- </head>
- <body>
- <?php if ($_SERVER['REQUEST_METHOD'] == 'GET') { ?>
- <div class="container">
- <form action="<?php echo htmlentities($_SERVER['SCRIPT_NAME']) ?>" method="post">
- <div class="form-group has-success has-feedback">
- <p class="help-block">Create a 9 block Diagram, copy from spreadsheet</p>
- <div class="col-md-12">
- <textarea rows="18" class="form-control" id="Desc" name="Desc" placeholder="Bill Kumagai 3 3" value=""></textarea>
- <!-- Radio Buttons -->
- <label class="radio-inline"><input type="radio" id="optradio1" name="optradio1">Font size 8</label>
- <label class="radio-inline"><input type="radio" id="optradio2" name="optradio2" checked>Font size 10</label>
- <label class="radio-inline"><input type="radio" id="optradio3" name="optradio3">Font size 12</label>
- <label class="radio-inline"><input type="radio" id="optradio4" name="optradio4">Font size 14</label>
- </div>
- </div>
- <input id="submit" name="submit" type="submit" value="Send" class="btn btn-primary">
- </form>
- </div>
- <div class="container">
- </div>
- <!-- Latest compiled and minified JavaScript -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
- </body>
- </html>
- <?php } else {
- echo "<!DOCTYPE html>";
- echo "<html><body>";
- echo "<div>";
- $em=$_POST['Desc'];
- // None of these are found
- $ex=$_POST['optradio1']; echo "<br/> 1: ".$ex;
- $ex=$_POST['optradio2']; echo "<br/> 2: ".$ex;
- $ex=$_POST['optradio3']; echo "<br/> 3: ".$ex;
- $ex=$_POST['optradio4']; echo "<br/> 4: ".$ex;
- echo "<center>";
- echo "<H3>9 Block Associate Plotter</H3>";
- echo "</center>";
- echo "</div>";
- //Send a generated image to the browser
- //create_image();
- echo "<div><p><br/>";
- echo "<center>";
- echo "<img height=\"650\" alt=\"Dynamically generated image\" src=\"img.php?app=".$em. "\" width=\"1000\">";
- echo "</center>";
- echo "</p></div><br/>";
- echo "<div class=\"container\">";
- echo "<a href=\"imf.php\" class=\"btn btn-primary btn-md\" role=\"button\">Do It Again</a>";
- echo "</div><br/>";
- echo "</body></html>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement