disculpen; bueno aki un el codigo
 
1.- producto html    
Código HTML:
Ver original- <!doctype html> 
-      
-     <link href="css/jquery-ui-1.10.3.custom.min.css" rel="stylesheet"/> 
-     <link href="css/estilo.css" rel="stylesheet"/> 
-      
-     $(function()  
-     {    
-        // 
-        $("#dialogo").dialog({ 
-             autoOpen: false, 
-             width: 500, 
-             height:300 
-         }); 
-         // Link to open the dialog 
-         $( "#b" ).click(function( event ) { 
-             $( "#dialogo" ).dialog( "open" ); 
-             event.preventDefault(); 
-         }); 
-     }); 
-   
-      
-             <td><input type="text" id="descripcion"></td> 
-          
-   
-   
-   
-   
-             <th colspan="2"><input type="button" value="guardar" onclick="enviar('guardar');"/>  
-             <input type="button" value="Buscar" id="b" /></th> 
-   
-     <!--Ventana de dialogo--> 
-         <input type="text" id="valor"/> 
2.- frmproducto.js     
Código Javascript
:
Ver original- function enviar(boton) 
-   
- {  
-     var producto_id=$('#producto_id').html(); 
-     var descripcion=$('#descripcion').val(); 
-     var precio=$('#precio').val(); 
-     var cantidad=$('#cantidad').val(); 
-     var stock=$('#stock').val(); 
-     //alert(stock) 
-     datos="producto_id="+producto_id+"&descripcion="+descripcion+"&precio="+precio+"&cantidad="+cantidad+"&stock="+stock+"&boton="+boton; 
-     //alert(datos); 
-      $.ajax({ 
-         type:"POST",  
-         url:"cproducto.php", 
-         data:datos, 
-         success:function(ssss) 
-         { 
-             //alert(ssss); 
-             if (parseInt(ssss)>0) { 
-                 $('#producto_id').html(ssss); 
-                 $('#msg').html('<marquee>Registro Satisfactorio</marquee>'); 
-             } 
-         } 
-     });  
- } 
3.-  cproducto     
Código PHP:
Ver original- <?php 
-     //Recibimos las variables del formulario 
-   
-     $boton= $_REQUEST['boton']; 
-     $producto_id= $_REQUEST['producto_id']; 
-     $descripcion= $_REQUEST['descripcion']; 
-     $precio= $_REQUEST['precio']; 
-     $cantidad= $_REQUEST['cantidad']; 
-     $stock= $_REQUEST['stock']; 
-      
-      
-     switch ($boton) 
-      { 
-         case 'guardar': 
-             require_once("clases/producto.php"); 
-             $pro= new producto($producto_id, $descripcion, $precio, $cantidad,$stock ); 
-         break; 
-      } 
-      
- ?> 
4.-  producto.php    
Código PHP:
Ver original- <?php 
-     //Recibimos las variables del formulario 
-   
-     $boton= $_REQUEST['boton']; 
-     $producto_id= $_REQUEST['producto_id']; 
-     $descripcion= $_REQUEST['descripcion']; 
-     $precio= $_REQUEST['precio']; 
-     $cantidad= $_REQUEST['cantidad']; 
-     $stock= $_REQUEST['stock']; 
-      
-      
-     switch ($boton) 
-      { 
-         case 'guardar': 
-             require_once("clases/producto.php"); 
-             $pro= new producto($producto_id, $descripcion, $precio, $cantidad,$stock ); 
-         break; 
-      } 
-      
- ?> 
5.- Conexion a base de datos    
Código PHP:
Ver original- <?php 
-     class conexion 
-     { 
-         private $server; 
-         private $user; 
-         private $clave; 
-         private $bd; 
-   
-         public $conex; 
-   
-         function __construct() 
-         { 
-             $this ->server="127.0.0.1"; 
-             $this ->user="root"; 
-             $this ->clave="toor"; 
-             $this ->bd="dweb"; 
-         } 
-   
-         function conectar() 
-         { 
-             $this -> conex = new mysqli($this -> server, $this -> user, $this -> clave, $this -> bd);  
-         } 
-   
-         function cerrar() 
-         { 
-             $this -> conex -> close(); 
-         } 
-   
-   
-     } 
-   
-   
- ?> 
-----------------
bueno e estado depurando por la mañana pero no encuentro el HORRor, aun sigue sin guardarme los datos,  
Help me !!! Gracias de antemano