<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<!--
    Examples for Week 3 Lecture 2

    by: Sharon Tuttle
    last modified: 2025-02-06

    you can run this using the URL:
    https://nrs-projects.humboldt.edu/~st10/s25cs328/328lect03-2/328lect03-2.html
-->

<head>
    <title> Week 3 Lecture 2 Examples </title>
    <meta charset="utf-8" />

    <link href="https://nrs-projects.humboldt.edu/~st10/styles/normalize.css"
          type="text/css" rel="stylesheet" />
</head>

<body>
    <form method="get"
          action="https://nrs-projects.humboldt.edu/~st10">

        <!-- while it DOES seem common to have the same values for
             an element's name and id attributes, 
             I decided after class to give this textfield DIFFERENT
             values for these, so it may be easier to see
             which the label element uses and which is used
             in the submitted textfield's name=value pair
        -->
      
	<p>  <label for="lastname"> Last Name: </label>
             <input type="text" name="last_name" id="lastname" /> </p>
        <hr />

        <!-- four silly submit buttons!
	     BUT: make sure you understand the name=value pairs submitted
	     (or not) for each if it is the one clicked
	-->

        <p> <input type="submit" /> </p>
	<p> <input type="submit" value="SUBMIT MEEEEE" /> </p>
	<p> <input type="submit" name="NO_SUBMIT_ME" /> </p>
	<p> <input type="submit" name="NO_ME" value="ME ME" /> </p>
    </form>
    
    <footer>
    <hr />
    <p>
        Validate by pasting .xhtml copy's URL into<br />
	<a href="https://validator.w3.org/nu">
            https://validator.w3.org/nu
        </a>
	or  
        <a href="https://html5.validator.nu/">
            https://html5.validator.nu/
        </a>
    </p>
    </footer>
</body>
</html>