Preview

Php Lab Exam

Powerful Essays
Open Document
Open Document
413 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Php Lab Exam
Rachelle Viado Mr. Ervin Lomboy
BSIT3B July 20,2013 index.php <!DOCTYPE>
<html >
<head>
<title>labexam_viado</title>
</head>
<body>
<div id="container" style="width:1000px">
<div id="header" style="background-color:#A9A9A9;">
<h1 style="margin-bottom:0;"><center>LAB Exam</center></h1></div>
<div id="menu" style="background-color:#FFE4C4;height:500px;width:1000px;float:left;">
<form action= "numberPick.php" method="Post">
<table border="0">
<tr>
<td><b>Enter first number:<td> <input type="text" name="FN" /> </b> <br />
</tr><tr>
<td><b>Enter second number:<td> <input type="text" name="SN"/></b> <br />
</tr><tr>
<td><input type= "submit" name="submit" value="PROCEED TO TABLE" />
</tr></table>
</form>
</div>
<div id="footer" style="background-color:#A9A9A9;clear:both;text-align:center;"> By: Rachelle Viado</div>
</div>
</body>
</html>

numberPick.php
<html>
<head><title>Labexam_viado</title></head>
<body>
<?PHP echo "<table border=8 cellpadding=16>"; $first=$_POST['FN']; $second=$_POST['SN']; $i=1; $j=2; for ($i = 1; $i <= $first; $i++ ) { if($i%2!=0){ echo "<tr>"; echo '<form action="results.php" method="Post">'; echo '<td ><input type="submit" name="1" value= "'.$i.'"/></td>'; for ( $j = 2; $j <= $second; $j++ ) { if($j%2!=0){ echo '<form action="results.php" method="Post">'; echo '<td ><input type="submit" name="2" value= "'.$i * $j.'"/></td>'; } } echo "</tr>"; } } echo "</table>";
?>
</form>
</body>
</html>

You May Also Find These Documents Helpful

  • Satisfactory Essays

    CEIS100 W5 ILab Report

    • 320 Words
    • 2 Pages

    Code—copy and paste (or type) your code below. You can also post a screenshot of the program working if you would like.…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab Question Answers 02

    • 415 Words
    • 1 Page

    They find many clues that the body wasn’t actually that of Cora and also signs that Crippen may not have committed the crime.…

    • 415 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    PRETEST 2

    • 702 Words
    • 7 Pages

    In the absence of a contact complete with offer, acceptance, and consideration, a court may enforce a promise under the principle of promissory estoppel where…

    • 702 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    -It was so important because it was a landmark case, it was known for being the crime of the century, the first trial by media and the first to be dominated by forensic science.…

    • 339 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Exam w answers

    • 5251 Words
    • 21 Pages

    On the formation of a partnership, the contribution by one partner of encumbered property to a partnership when other partners contribute only cash will not result in taxation unless the total amount of the debt relief exceeds the contributor’s basis in the contributed property.…

    • 5251 Words
    • 21 Pages
    Good Essays
  • Good Essays

    Pre-Laboratory Questions

    • 531 Words
    • 3 Pages

    The patterns of distribution related to rock pocket mice coat color is primarily focused on the genetic variation regarding the fur color of the mice. The population of mice that possess a lighter fur color typically live in regions that contain light coloured rocks within the environment. Still, mice that have a darkened color fur will most often be found in areas in which the environment is surrounded by volcanos with lava flow. The common pattern of the coat color between the rock pocket mice show a correlation with the terrain color, in which there is an adaptive mechanism against predators, which increases the chances of survival.…

    • 531 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Microsoft Basics Exam

    • 944 Words
    • 5 Pages

    3. You send a report to your boss for feedback and she returns it to you with her edits noted in the…

    • 944 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Exam 3 Practice

    • 3427 Words
    • 14 Pages

    Sonderson Corporation is undertaking a capital budgeting analysis. The firm's beta is 1.5. The rate on 6 month t-bills is 5%, and the return on the S&P 500 index is 12%. The firm can issue external equity with flotation costs of 14%. What is the appropriate cost for retained earnings in determining the firm's cost of capital?…

    • 3427 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    EXAM 1

    • 926 Words
    • 3 Pages

    1 WHAT IS MENTORSHIP? A VOLUNTARY DEVELOPMENTAL RELATIONSHIP THAT EXISTS BETWEEN A PERSON OF GREATER EXPERIENCE AND A PERSON OF LESSER EXPERIENCE CHARICTORIZED BY MUTUAL TRUST AND RESPECT…

    • 926 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Sample Exam

    • 1778 Words
    • 8 Pages

    Jane Doe, who has substantial personal wealth and income, is considering the possibility of starting a new business in the chemical waste management field. She will be the sole owner, and she has enough funds to finance the…

    • 1778 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    practice exam 2

    • 663 Words
    • 7 Pages

    If materials are added at the beginning of the production process, what is the total…

    • 663 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    Exam 1

    • 4986 Words
    • 20 Pages

    2. Use the abridged article about Uniqlo on p. 8 to answer the following questions: (4 points each)…

    • 4986 Words
    • 20 Pages
    Powerful Essays
  • Powerful Essays

    Exam 1

    • 1953 Words
    • 8 Pages

    is the process by which we learn about our culture by watching and imitating the behaviors…

    • 1953 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Exam 1

    • 5433 Words
    • 22 Pages

    | In Business 1.0 approach, messages are scripted by designated communication, approved by someone in authority, distributed through selected channels, and delivered without modification to a passive audience. In the 2.0 approach, customers and other stakeholders participate in, influence, and often take control of conversations in the marketplace. The audience must be active listeners in the 2.0 approach.…

    • 5433 Words
    • 22 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Exam 1

    • 410 Words
    • 2 Pages

    The first midterm exam, which counts for 20% of your course grade, will be on Thursday, October 2, in class. Blue books are not necessary; there is no need to bring a blue book to class on exam day. You will be asked to complete the exam on the bubble sheet (provided) and on the exam.…

    • 410 Words
    • 2 Pages
    Satisfactory Essays