Question

In: Computer Science

Please create a PHP action codes for the HTML CODE provided below. <!DOCTYPE html> <html> <head>...

Please create a PHP action codes for the HTML CODE provided below.

<!DOCTYPE html>

<html>

<head>

<title>

Project for keeping all your input

</title>

</head>

<body>

<h1>Welcome to this Web Based Test!!!</h1>

<p>Please answer the following questions:</p>

<hr/>

<form action="" method="post">

Name: <input type="text" name="name" value=""> <font color=red>*</font><br/><br/>

E-mail: <input type="text" name="email" value=""> <font color=red>*</font><br>

<hr/>

Choose your major area of study: <select name="major">

<option value="Digital Media" >Digital Media</option>

<option value="Software" >Software</option>

<option value="Security" >Security</option>

<option value="Business" >Business</option>

<option value="Other" >Other</option>

</select> <br/>

<hr/>

<p>Questons 1 (25points)</p>

<p>If my name is Will Smith, what is my first name?</p>

<input type="radio" value="A" name="Q1" >A. Will <br/>

<input type="radio" value="B" name="Q1" >B. Smith<br/>

<input type="radio" value="C" name="Q1" >C. Will Smith<br/>

<input type="radio" value="D" name="Q1" >D. Smith Will<br/>

<hr/>

<p>Questons 2 (25points)</p>

<p>If my favoriate color is red, what color I like most?</p>

<input type="radio" value="A" name="Q2" >A. blue<br/>

<input type="radio" value="B" name="Q2" >B. pink<br/>

<input type="radio" value="C" name="Q2" >C. red <br/>

<input type="radio" value="D" name="Q2" >D. black<br/>

<hr/>

<p>Questons 3 (25points)</p>

<p>If I was born and grew up in New York, what is my hometown's name?</p>

<input type="radio" value="A" name="Q3" >A. LA<br/>

<input type="radio" value="B" name="Q3" >B. Las Vegas<br/>

<input type="radio" value="C" name="Q3" >C. Detroit<br/>

<input type="radio" value="D" name="Q3" >D. New York <br/>

<hr/>

<p>Questons 4 (25points)</p>

<p>If my birthday is 10/27/1998, what is 10+27?</p>

<input type="radio" value="A" name="Q4" >A. 27<br/>

<input type="radio" value="B" name="Q4" >B. 37 <br/>

<input type="radio" value="C" name="Q4" >C. 17<br/>

<input type="radio" value="D" name="Q4" >D. 47<br/>

<hr/>

<input type="checkbox" name="showanswer" value="YES" > Show correct answers after submission.

<br/><br/>

<input type="submit" value="Submit this test" name="submit">

<input type="submit" name="reset" value="Reset">

</form>

<!--for admin -->

<hr/>

<div style="text-align:left;background-color:pink;width:50%;margin:auto;">

<form action="action-project-1.2.php" method="post">

<div style="text-align:right;margin-right: 20%;">

Admistrator ID: <input type="text" name="name"> <font color=red>*</font><br>

Password: <input type="password" name="passwd"> <font color=red>*</font><br>

</div>

<hr/>

<div style="text-align:left;margin-left: 20%;">

<input type="radio" name="showwhat" value="all">Show all grades<br/>

<input type="radio" name="showwhat" value="sorted">Show all grades sorted descendly <br/>

<input type="radio" name="showwhat" value="p100">Show all grades that are 100<br/>

<input type="radio" name="showwhat" value="dm0">Show all grades that are 0 and are of Digital Media Major <br/>

<input type="radio" name="showwhat" value="byname">Find student(s)'s grade by name: <input type="text" name="student" value=""><br/>

</div>

<hr/>

<div style="text-align:center;">

<input type="submit" value="See grades" name="submitme"><input type="reset">

</div>

</form>

</div>

<hr/>

</body>

</html>

Solutions

Expert Solution

hey here i am done ! here is the code ---

Please give me a like for appreciate my work --

<!DOCTYPE html>

<html>

<head>

<title>

Project for keeping all your input

</title>

</head>

<body>

<h1>Welcome to this Web Based Test!!!</h1>

<p>Please answer the following questions:</p>

<hr/>

<form action="MainHtml.php" method="post">

Name: <input type="text" name="name" value=""> <font color=red>*</font><br/><br/>

E-mail: <input type="text" name="email" value=""> <font color=red>*</font><br>

<hr/>

Choose your major area of study: <select name="major">

<option value="Digital Media" >Digital Media</option>

<option value="Software" >Software</option>

<option value="Security" >Security</option>

<option value="Business" >Business</option>

<option value="Other" >Other</option>

</select> <br/>

<hr/>

<p>Questons 1 (25points)</p>

<p>If my name is Will Smith, what is my first name?</p>

<input type="radio" value="A" name="Q1" >A. Will <br/>

<input type="radio" value="B" name="Q1" >B. Smith<br/>

<input type="radio" value="C" name="Q1" >C. Will Smith<br/>

<input type="radio" value="D" name="Q1" >D. Smith Will<br/>

<hr/>

<p>Questons 2 (25points)</p>

<p>If my favoriate color is red, what color I like most?</p>

<input type="radio" value="A" name="Q2" >A. blue<br/>

<input type="radio" value="B" name="Q2" >B. pink<br/>

<input type="radio" value="C" name="Q2" >C. red <br/>

<input type="radio" value="D" name="Q2" >D. black<br/>

<hr/>

<p>Questons 3 (25points)</p>

<p>If I was born and grew up in New York, what is my hometown's name?</p>

<input type="radio" value="A" name="Q3" >A. LA<br/>

<input type="radio" value="B" name="Q3" >B. Las Vegas<br/>

<input type="radio" value="C" name="Q3" >C. Detroit<br/>

<input type="radio" value="D" name="Q3" >D. New York <br/>

<hr/>

<p>Questons 4 (25points)</p>

<p>If my birthday is 10/27/1998, what is 10+27?</p>

<input type="radio" value="A" name="Q4" >A. 27<br/>

<input type="radio" value="B" name="Q4" >B. 37 <br/>

<input type="radio" value="C" name="Q4" >C. 17<br/>

<input type="radio" value="D" name="Q4" >D. 47<br/>

<hr/>

<input type="checkbox" name="showanswer" value="YES" > Show correct answers after submission.

<br/><br/>

<input type="submit" value="Submit this test" name="submit">

<input type="submit" name="reset" value="Reset">

</form>

<!--for admin -->

<hr/>

<div style="text-align:left;background-color:pink;width:50%;margin:auto;">

<form action="action-project-1.2.php" method="post">

<div style="text-align:right;margin-right: 20%;">

Admistrator ID: <input type="text" name="name"> <font color=red>*</font><br>

Password: <input type="password" name="passwd"> <font color=red>*</font><br>

</div>

<hr/>

<div style="text-align:left;margin-left: 20%;">

<input type="radio" name="showwhat" value="all">Show all grades<br/>

<input type="radio" name="showwhat" value="sorted">Show all grades sorted descendly <br/>

<input type="radio" name="showwhat" value="p100">Show all grades that are 100<br/>

<input type="radio" name="showwhat" value="dm0">Show all grades that are 0 and are of Digital Media Major <br/>

<input type="radio" name="showwhat" value="byname">Find student(s)'s grade by name: <input type="text" name="student" value=""><br/>

</div>

<hr/>

<div style="text-align:center;">

<input type="submit" value="See grades" name="submitme"><input type="reset">

</div>

</form>

</div>

<hr/>

</body>

</html>

and MainHtml.php

<html>
<body>

First Name : <?php echo $_POST["name"]; ?><br>
Your Email: <?php echo $_POST["email"]; ?><br>
<?php
if(isset($_POST['submit'])){
$selected_val = $_POST['major']; // Storing Selected Value In Variable
echo "You have selected :" .$selected_val; // Displaying Selected Value
}
?><br>
<?php
if(isset($_POST['Q1']))
{
echo "You have selected :".$_POST['Q1']; // Displaying Selected Value
}
?><br>
<?php
if(isset($_POST['Q2']))
{
echo "You have selected :".$_POST['Q2']; // Displaying Selected Value
}
?><br>
<?php
if(isset($_POST['Q3']))
{
echo "You have selected :".$_POST['Q3']; // Displaying Selected Value
}
?><br>
<?php
if(isset($_POST['Q4']))
{
echo "You have selected :".$_POST['Q4']; // Displaying Selected Value
}
?><br>

</body>
</html>

and action-project-1.2.php ---

<html>
<body>

First Name : <?php echo $_POST["name"]; ?><br>


Your Password: <?php echo $_POST['passwd']; ?><br>
Show all Grades : <?php
if(isset($_POST['showwhat']))
{
  
echo "You have selected :".$_POST['showwhat']; // Displaying Selected Value
}
?>

</body>
</html>

and here is the snapshot of the output ---

hey you can edit with your code .. what you want to do.. i am done from my side ..

please give me a like for my work and effort . Thank You !


Related Solutions

<!DOCTYPE html> <html> <head> <!-- *************************************************************************************** --> <!-- * * --> <!-- * Do not change...
<!DOCTYPE html> <html> <head> <!-- *************************************************************************************** --> <!-- * * --> <!-- * Do not change anything within the <head></head> section of the HTML * --> <!-- * * --> <!-- *************************************************************************************** --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script> <style> .btn{border:1px solid black; padding:5px;display:inline-block} </style> </head> <body> <!-- *************************************************************************************** --> <!-- * * --> <!-- * Nothing to change here in the <body> * --> <!-- * * --> <!-- ***************************************************************************************...
Draw the DOM tree for the HTML of the ImageSwap application. <!DOCTYPE html> <html> <head> <title>Image...
Draw the DOM tree for the HTML of the ImageSwap application. <!DOCTYPE html> <html> <head> <title>Image Swap Application</title> <link rel="stylesheet" type="text/css" href="image_swap.css"> <script type="text/javascript" src="image_swap.js"></script> </head> <body>     <main>         <h1>Fishing Images</h1>         <p>Click on an image to enlarge.</p>         <ul id="imageLinks">             <li><a href="images/release.jpg" title="Catch and Release">                 <img src="thumbnails/release.jpg" alt=""></a></li>             <li><a href="images/deer.jpg" title="Deer at Play">                 <img src="thumbnails/deer.jpg" alt=""></a></li>             <li><a href="images/hero.jpg" title="The Big One!">                 <img src="thumbnails/hero.jpg" alt=""></a></li>             <li><a href="images/bison.jpg" title="Grazing Bison">                 <img src="thumbnails/bison.jpg"...
- Create an html form (bank form) and the PHP code with 2 accounts with options...
- Create an html form (bank form) and the PHP code with 2 accounts with options to transfer, deposit or withdraw money.
pls use the website validator.w3.org to remove all the errors in the codes <!!DOCTYPE html PUBLIC...
pls use the website validator.w3.org to remove all the errors in the codes <!!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Nchako</title> <style> p { font-family: Georgia, "Times New Roman", Times, serif; font-size: 0.95em; color: #333333; line-height: 20px; } h1 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.4em; color: #000033; } h2 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.2em; color: #000033; } h3 { font-family: Georgia, "Times New Roman", Times, serif; font-size: 1.1em;...
HTML <!DOCTYPE html> <html> <head>     <meta charset="UTF-8">     <title>Clock</title>     <link rel="stylesheet" href="clock.css">    &n
HTML <!DOCTYPE html> <html> <head>     <meta charset="UTF-8">     <title>Clock</title>     <link rel="stylesheet" href="clock.css">     <script src="clock.js"></script> </head> <body>     <main>         <h1>Digital clock</h1>         <fieldset>             <legend>Clock</legend>             <span id="hours">&nbsp;</span>:             <span id="minutes">&nbsp;</span>:             <span id="seconds">&nbsp;</span>&nbsp;             <span id="ampm">&nbsp;</span>         </fieldset>     </main> </body> </html> CSS: body {     font-family: Arial, Helvetica, sans-serif;     background-color: white;     margin: 0 auto;     width: 450px;     border: 3px solid blue;     padding: 0 2em 1em; } h1 {     color: blue; } label {     float: left;     width: 11em;     text-align: right;     padding-bottom: .5em; } input {     margin-left: 1em;     margin-bottom: .5em; } fieldset {...
Please code the arrays. This is in PHP/HTML Perform some calculations: 1. $ages = [24, 12,...
Please code the arrays. This is in PHP/HTML Perform some calculations: 1. $ages = [24, 12, 10, 17, 23, 29, 35, 32, 30, 22] Using a FOR loop, calculate the sum and average of these numbers, then print them. Please provide legible output. 2. If I change the array to $ages = [1 => 24, 12, 10, 17, 23, 29, 35, 32, 30, 22] How will the program change? Re-run the program and provide output 3. Assume that the above...
PHP Question - Subject: PHP File Handling and Uploads INSTRUCTIONS: Objective: • Create a sticky HTML...
PHP Question - Subject: PHP File Handling and Uploads INSTRUCTIONS: Objective: • Create a sticky HTML form. • Submit form for processing. • Sanitize and validate form data. • Upload a profile image. • Add a record to a text file. • Display form results with content from another text file and the uploaded image. Description: This assignment deals with file management. It requires the use of 3 new files and 1 new directory. You will create the new file-uploads.php...
PHP Question - Subject: PHP File Handling and Uploads INSTRUCTIONS: Objective: • Create a sticky HTML...
PHP Question - Subject: PHP File Handling and Uploads INSTRUCTIONS: Objective: • Create a sticky HTML form. • Submit form for processing. • Sanitize and validate form data. • Upload a profile image. • Add a record to a text file. • Display form results with content from another text file and the uploaded image. Description: This assignment deals with file management. It requires the use of 3 new files and 1 new directory. You will create the new file-uploads.php...
Please provide HTML code for the following: - Create a page that lists a set of...
Please provide HTML code for the following: - Create a page that lists a set of audio files and shows their duration - Create a page that lists a set of video files and plays a different video when you click on the play icon
The code to create a Search/Filter Data with Javascript or html from html page.
The code to create a Search/Filter Data with Javascript or html from html page.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT