Learning PHP and MySQL

Example 10-01 A simple form example

Put this code in a file named, simple.php

<html>
<
head>
     <
title>Building  a  Form</title>
</
head>
<
body>
     <
form  action="<?php  echo($_SERVER['PHP_SELF']);  ?>"
     
method="get">
     <
label>
     
Search:  <input  type="text"  name="search"  />
      </
label>
    <
input  type="submit"  value="Go!"  />
    </
form>
</
body>
</
html>

Posted by on 08/18 at 10:50 AM

Next entry: Example 10-02 Modifying our simple search to process the results

Previous entry: Example 07-02 The SQL to create and populate a purchases table that links user_ids and title_ids

<< Back to main