Question
please be sure is run and connect each part below a file named presidents.txt contains the data you need for this assignment. Download and copy
please be sure is run and connect each part below a file named presidents.txt contains the data you need for this assignment. Download and copy this file to your directory. You will use it for this assignment.
1. Write a file named hw3a.php. This file should contain a form that sends its action to hw3b.php. The form should contain a select whose options contain values that are the president number, and the options should display the names of the presidents.
2. Write a file named hw3b.php. This file should display the name, year, age, state, party, occupation, and college for the chosen president.
3. Write a file named hw3c.php. This file should contain a form that sends its action to hw3d.php. The form contains text fields for name, year, age, state, party, occupation, and college.
4. Write a file named hw3d.php. This file should calculate a new president number (one more than the highest city rank in the file). The file should then insert the new record at the end of the file.
PRESEDENT LINKE SUPOSE TO USE TO SOLVE THE HOMEWORK
1;George Washington;1789;57;Virginia;None;Planter;None 2;John Adams;1797;61;Massachusetts;Federalist;Lawyer;Harvard 3;Thomas Jefferson;1801;57;Virginia;Democratic-Republican;"Planter; Lawyer";William and Mary 4;James Madison;1809;57;Virginia;Democratic-Republican;Lawyer;Princeton 5;James Monroe;1817;58;Virginia;Democratic-Republican;Lawyer;William and Mary 6;John Quincy Adams;1825;57;Massachusetts;Democratic-Republican;Lawyer;Harvard 7;Andrew Jackson;1829;61;Tennessee;Democrat;Lawyer;None 8;Martin Van Buren ;1837;54;New York;Democrat;Lawyer;None 9;William Henry Harrison;1841;68;Ohio;Whig;Soldier;Hampden-Sydney 10;John Tyler;1841;51;Virginia;Whig;Lawyer;William and Mary 11;James K. Polk;1845;49;Tennessee;Democrat;Lawyer;U. of North Carolina 12;Zachary Taylor;1849;64;Louisiana;Whig;Soldier;None 13;Millard Fillmore;1850;50;New York;Whig;Lawyer;None 14;Franklin Pierce;1853;48;New Hampshire;Democrat;Lawyer;Bowdoin 15;James Buchanan;1857;65;Pennsylvania;Democrat;Lawyer;Dickinson 16;Abraham Lincoln;1861;52;Illinois;Republican;Lawyer;None 17;Andrew Johnson;1865;56;Tennessee;National Union;Tailor;None 18;Ulysses S. Grant;1869;46;Illinois;Republican;Soldier;US Military Academy 19;Rutherford B. Hayes;1877;54;Ohio;Republican;Lawyer;Kenyon 20;James A. Garfield;1881;49;Ohio;Republican;Lawyer;Williams 21;Chester A. Arthur;1881;50;New York;Republican;Lawyer;Union 22;Grover Cleveland;1885;47;New York;Democrat;Lawyer;None 23;Benjamin Harrison;1889;55;Indiana;Republican;Lawyer;Miami 24;Grover Cleveland;1893;55;New York;Democrat;Lawyer;None 25;William McKinley;1897;54;Ohio;Republican;Lawyer;Allegheny College 26;Theodore Roosevelt;1901;42;New York;Republican;Author;Harvard 27;William Howard Taft;1909;51;Ohio;Republican;Lawyer;Yale 28;Woodrow Wilson;1913;56;New Jersey;Democrat;Educator;Princeton 29;Warren G. Harding;1921;55;Ohio;Republican;Editor;None 30;Calvin Coolidge;1923;51;Massachusetts;Republican;Lawyer;Amherst 31;Herbert Hoover;1929;54;California;Republican;Engineer;Stanford 32;Franklin Roosevelt;1933;51;New York;Democrat;Lawyer;Harvard 33;Harry S. Truman;1945;60;Missouri;Democrat;Businessman;None 34;Dwight D. Eisenhower;1953;62;New York;Republican;Soldier;US Military Academy 35;John F. Kennedy;1961;43;Massachusetts;Democrat;Author;Harvard 36;Lyndon B. Johnson;1963;55;Texas;Democrat;Teacher;Southwest Texas State 37;Richard M. Nixon;1969;56;New York;Republican;Lawyer;Whittier 38;Gerald Ford;1974;61;Michigan;Republican;Lawyer;Michigan 39;Jimmy Carter;1977;52;Georgia;Democrat;Businessman;US Naval Academy 40;Ronald Reagan;1981;69;California;Republican;Actor;Eureka College 41;George Bush;1989;64;Texas;Republican;Businessman;Yale 42;Bill Clinton;1993;46;Arkansas;Democrat;Lawyer;Georgetown 43;George W. Bush;2001;54;Texas;Republican;Businessman;Yale 44;Barack Obama;2009;47;Illinois;Democrat;Lawyer;Columbia University
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started