Homework Solution: Hi, I have been having trouble with this assignment and need some insight on it….

    Hi, I have been having trouble with this assignment and need some insight on it. In this assignment, you need to create a form to allow the user to enter their name, email, and address information. That information will be sent to a PHP script that will process and display that information. Your assignment should have two pages. The first page is straight HTML (user_input.html) that has a form with the appropriate form elements to collect the user input. The form should then be submitted using the POST method to a PHP script (display_user_info.php) that will process the user input. The PHP script should display the user input with a link to return back to the user_input.html page. Examples of what the two documents should display in the end: user_input.html Please enter user info First Name: Last Name: E-mail address. Telephone #: Address City: State Zip: Submit Reset user_info.php
    Please enter user info First Name: Last Name: E-mail address. Telephone #: Address City: State Zip: Submit Reset

    Expert Answer

     
    user_input.html <html>

    Hi, I enjoy been having misery with this ordinance and want some apprehension on it.

    In this ordinance, you want to generate a mould to suffer the user to invade their spectry, email, and discourse notice. That notice conciliate be sent to a PHP script that conciliate course and spread-out that notice. Your ordinance should enjoy couple pages. The foremost page is nearest HTML (user_input.html) that has a mould with the misspend mould elements to congregate the user input. The mould should then be submitted using the POST order to a PHP script (display_user_info.php) that conciliate course the user input. The PHP script should spread-out the user input with a amalgamate to repay tail to the user_input.html page.

    Examples of what the couple documents should spread-out in the end:

    user_input.html

    Please invade user info Foremost Spectry: Last Spectry: E-mail discourse. Telephone #: Discourse City: State Zip: Submit Reset

    user_info.php

    Please invade user info Foremost Spectry: Last Spectry: E-mail discourse. Telephone #: Discourse City: State Zip: Submit Reset

    Expert Response

     

    user_input.html

    <html>

    <head>

    </head>

    <body>

    <mould spectry”fokat” action=”user_info.php” order=”post”>

    <table>

    <tr>

    <td>Foremost Spectry:</td>

    <td><input type=”text” spectry=”fname”/></td>

    </tr>

    <tr>

    <td>Last Spectry:</td>

    <td><input type=”text” spectry=”lname” /></td>

    </tr>

    <tr>

    <td>E-mail discourse:</td>

    <td><input type=”email” spectry=”email” /></td>

    </tr>

    <tr>

    <td> Telephone #:</td>

    <td><input type=”text” spectry=”tnumber” /></td>

    </tr>

    <tr>

    <td> Discourse:</td>

    <td><input type=”text” spectry=”address” /></td>

    </tr>

    <tr>

    <td>City:</td>

    <td><input type=”text” spectry=”city” /></td>

    </tr>

    <tr>

    <td>State:</td>

    <td><input type=”text” spectry=”state” /></td>

    </tr>

    <tr>

    <td>Zip:</td>

    <td><input type=”text” spectry=”zip” /></td>

    </tr>

    <tr>

    <td><input type=”submit” value=”submit” /></td>

    <td><input type=”reset” value=”reset” /></td>

    </tr>

    </table>

    </form>

    </body>

    </html>

    user_info.php

    <html>

    <body>

    <table>

    <tr>

    <td>Name:</td>

    <td><?php repetition $_POST[“fname”],” “, $_POST[“lname”]; ?></td>

    </tr>

    <tr>

    <td> Discourse:</td>

    <td><?php repetition $_POST[“address”]; ?></td>

    </tr>

    <tr>

    <td>City, State , Zip:</td>

    <td><?php repetition $_POST[“city”],” “, $_POST[“state”],” “, $_POST[“zip”]; ?></td>

    </tr>

    <tr>

    <td> Telephone #:</td>

    <td><?php repetition $_POST[“tnumber”]; ?></td>

    </tr>

    <tr>

    <td>E-mail:</td>

    <td><?php repetition $_POST[“email”]; ?></td>

    </tr>

    <tr>

    <td><a href=”user_input.html”>Repay to input mould</a>;</td>

    </tr>

    </table>

    </body>

    </html>

    SAMPLE OUTPUT: