<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="Site perso,cours,ouvrages" />
<meta name="Keywords" content="WEBSITE perso " />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="" />
<meta http-equiv="Content-Language" content="fr" />
<meta name="rating" content="general" />
<meta name="author" content="Patrice DELPY" />
<meta name="copyright" content="Copyright 2013" />
<meta name="generator" content="Patoche" />
<title>Patoche WEBSITE - 2013 - Template du site - en cours de développemment ...</title>

<style type="text/css">

#my_id {
    display: none;
}

fieldset {
    display: block;
    margin-left: 200px;
    margin-right: 200px;
    padding-top: 0.35em;
    padding-bottom: 0.625em;
    padding-left: 0.75em;
    padding-right: 0.75em;
    border: 2px groove (internal value);
}

</style>


<script>
function nom_produit() 
{
    
		var name = document.getElementById('name').value;
		
		// is not a nomber
		//isNaN(123) //false
		
        document.getElementById("txtHint").innerHTML = "";
	
        if (window.XMLHttpRequest)
		{
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } 
		else
		{
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
		
        xmlhttp.onreadystatechange = function() 
		{
            if (this.readyState == 4 && this.status == 200) 
			{
                document.getElementById("txtHint").innerHTML = this.responseText;
            }
        };
		
        xmlhttp.open("GET","query_database.php?q="+name,true);
        xmlhttp.send();
    
}
</script>
</head>

<body>

<!--
<form>
<select name="users" onchange="showUser(this.value)">
  <option value="">Select a person:</option>
  <option value="1">War of the Ring</option>
  <option value="2">Lois Griffin</option>
  <option value="3">Joseph Swanson</option>
  <option value="4">Glenn Quagmire</option>
  </select>
</form>
-->

<!--
<form>
First name: <input type="text" onkeyup="showUser(this.value)">
</form>
-->

<?php
		echo "0634482703571";
		echo "<br>";
		echo "war of the ring";
		
		echo "Lookup database (Barcode or product name)";
?>

		<form id="myForm" action="test01.php">
		Name: <input type="text" id="name"  name="name"><br>
		<input type="button" onclick="nom_produit()" value="Submit form">
		</form>



<br>
<div id="txtHint"><b>Résultats...</b></div>

</body>
</html> 



