HTML5 I have created page "Index" that includes a form from html page"ChestAndBack" On the html page "ChestAndBack" I did not use any of the usual tags such as Doctype, title, html, etc. It seems to run, but would it be better to include those usual tags? My end goal is to load different forms depending on user dropdown selection on Index page

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

HTML5

I have created page "Index" that includes a form from html page"ChestAndBack"

On the html page "ChestAndBack" I did not use any of the usual tags such as Doctype, title, html, etc.

It seems to run, but would it be better to include those usual tags?

My end goal is to load different forms depending on user dropdown selection on Index page.

Hg index.php
EE ChestAndBack.php
A ChestAndBack.html
EH inputTable.php
EE workoutHistory.php
1
<! --Would it be better to include the usual HTML tags such as <?DOCTYPE>, <html>, <body>, <title, etc?-->
A 34 Y5 A v
<?php
4
echo"<h2 text-align: left>Chest and Back</h2>";
?>
6
7
J<form method="post" action="inputTable.php">
8
<p>Date of Workout<input type="date" name="date" required > </p>
<p>How do you feel?<input size="15%" class="left" type="text" name="focus" required> </p>
<p>Standard Push Ups<input size="5%" type="text" name="standardPush1" inputmode="numeric" inputmode="numeric"><input si
<p>Wide Front Pull Ups<input size="5%" type="text" name="widePull1" inputmode="numeric" inputmode="numeric"><input size
<p>Military Push Ups<input size="5%" type="text" name="milPush1" inputmode="numeric"><input size="5%" type="text" name=
<p>Reverse Grip Chin Ups<input size="5%" type="text" name="revChin1" inputmode="numeric"><input size="5%" type="text""T
<p>Wide Fly Push Ups<input size="5%" type="text" name="widePush1" inputmode="numeric"><input size="5%" type="text" name
<p>Closed Grip Overhand Pull Ups<input size="5%" type="text" name="closedPulli" inputmode="numeric"><input size="5%" tj
10
11
12
13
14
15
16
<p>Decline Push Ups<input size="5%" type="text" name="decPush1" inputmode="numeric"><input size="5%" type="text" name="
<p>Heavy Pants<input size="5%" type="text" name="hvyPants1" inputmode="numeric"><input size="5%" type="text" name="hvyF
<p>Diamond Push Ups<input size="5%" type="text" name="diaPush1" inputmode="numeric"><input size="5%" type="text" name="
17
18
19
<p>Lawnmower<input size="5%" type="text" name="Lwnmow1" inputmode="numeric"><input size="5%" type="text" name="Lwnmow2"
<p>Dive Bomber Push Ups<input size="5%" type="text" name="diveBomber1" inputmode="numeric"><input size="5%" type="text"
20
21
<p>Back Flys<input size="5%" type="text" name="bFlys1" inputmode="numeric"><input size="5%" type="text" name="bFlys2" i
<p>Comments<textarea type="text" cols="25" rows="5" name="comments" ></textarea> </p>
<a href="workoutHistory.php">Workout History</a>
22
23
24
25
<input type="reset" value="Reset" name="reset">
26
<input type="submit" value="Submit" name="submit">
27
28
A</form>
29
Transcribed Image Text:Hg index.php EE ChestAndBack.php A ChestAndBack.html EH inputTable.php EE workoutHistory.php 1 <! --Would it be better to include the usual HTML tags such as <?DOCTYPE>, <html>, <body>, <title, etc?--> A 34 Y5 A v <?php 4 echo"<h2 text-align: left>Chest and Back</h2>"; ?> 6 7 J<form method="post" action="inputTable.php"> 8 <p>Date of Workout<input type="date" name="date" required > </p> <p>How do you feel?<input size="15%" class="left" type="text" name="focus" required> </p> <p>Standard Push Ups<input size="5%" type="text" name="standardPush1" inputmode="numeric" inputmode="numeric"><input si <p>Wide Front Pull Ups<input size="5%" type="text" name="widePull1" inputmode="numeric" inputmode="numeric"><input size <p>Military Push Ups<input size="5%" type="text" name="milPush1" inputmode="numeric"><input size="5%" type="text" name= <p>Reverse Grip Chin Ups<input size="5%" type="text" name="revChin1" inputmode="numeric"><input size="5%" type="text""T <p>Wide Fly Push Ups<input size="5%" type="text" name="widePush1" inputmode="numeric"><input size="5%" type="text" name <p>Closed Grip Overhand Pull Ups<input size="5%" type="text" name="closedPulli" inputmode="numeric"><input size="5%" tj 10 11 12 13 14 15 16 <p>Decline Push Ups<input size="5%" type="text" name="decPush1" inputmode="numeric"><input size="5%" type="text" name=" <p>Heavy Pants<input size="5%" type="text" name="hvyPants1" inputmode="numeric"><input size="5%" type="text" name="hvyF <p>Diamond Push Ups<input size="5%" type="text" name="diaPush1" inputmode="numeric"><input size="5%" type="text" name=" 17 18 19 <p>Lawnmower<input size="5%" type="text" name="Lwnmow1" inputmode="numeric"><input size="5%" type="text" name="Lwnmow2" <p>Dive Bomber Push Ups<input size="5%" type="text" name="diveBomber1" inputmode="numeric"><input size="5%" type="text" 20 21 <p>Back Flys<input size="5%" type="text" name="bFlys1" inputmode="numeric"><input size="5%" type="text" name="bFlys2" i <p>Comments<textarea type="text" cols="25" rows="5" name="comments" ></textarea> </p> <a href="workoutHistory.php">Workout History</a> 22 23 24 25 <input type="reset" value="Reset" name="reset"> 26 <input type="submit" value="Submit" name="submit"> 27 28 A</form> 29
PHE index.php
ChestAndBack.php
A ChestAndBack.html
inputTable.php
EHE workoutHistory.php
A3 X5 A
18
</head>
19
PS
20
J<body>
21
22
<h1>Workout Tracker</h1>
23
J<form class="center" action="index.php">
24
<p>
25
<select id="workout" default="This" name="workout" onchange="this.form.submit(O">
26
<option value="chooseoption" selected>Select Workout</option>
27
<option value="ChestAndBack">Chest and Back</option>
<option value="Plyometrics">Plyometrics</option>
<option value="ShouldersAndArms">Shoulders and Arms</option>
28
29
<option value="YogaX">Yoga X</option>
<option value="LegsAndBack">Legs and Back</option>
30
31
<option value="KenpoX">Kenpo X</option>
<option value="XStretch">X Stretch</option>
32
33
34
</select>
</p>
</form>
35
36
37
38
39
40
<?php
41
gif(isset($_GET['workout'])){
42
43
if($_GET['workout']=="ChestAndBack"){
44
include_once "ChestAndBack.html";
45
46
}
47
48
49
50
51
52
a</body>
53
Transcribed Image Text:PHE index.php ChestAndBack.php A ChestAndBack.html inputTable.php EHE workoutHistory.php A3 X5 A 18 </head> 19 PS 20 J<body> 21 22 <h1>Workout Tracker</h1> 23 J<form class="center" action="index.php"> 24 <p> 25 <select id="workout" default="This" name="workout" onchange="this.form.submit(O"> 26 <option value="chooseoption" selected>Select Workout</option> 27 <option value="ChestAndBack">Chest and Back</option> <option value="Plyometrics">Plyometrics</option> <option value="ShouldersAndArms">Shoulders and Arms</option> 28 29 <option value="YogaX">Yoga X</option> <option value="LegsAndBack">Legs and Back</option> 30 31 <option value="KenpoX">Kenpo X</option> <option value="XStretch">X Stretch</option> 32 33 34 </select> </p> </form> 35 36 37 38 39 40 <?php 41 gif(isset($_GET['workout'])){ 42 43 if($_GET['workout']=="ChestAndBack"){ 44 include_once "ChestAndBack.html"; 45 46 } 47 48 49 50 51 52 a</body> 53
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education