x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
x10Hosting Member

Join Date: Feb 2008
Posts: 13
Credits: 278
Allandin is on a distinguished road
Quote  
04-22-2008, 10:20 PM
capturar el dato seleccionado de un combo box

hola a todos, tengo esta pagina http://tesisujmd.elementfx.com/ingreso.php donde tengo un combo box con 3 (opciones hasta el momento) llamado combo, como hago para capturar la seleccion del usuario, estoy usando sql y php, puedo capturar todos los datos con este codigo, pero cuando le puse el combo,ya no me funciono
$titulo = htmlentities($_POST['titulo'], ENT_QUOTES);
$link = htmlentities($_POST['link'], ENT_QUOTES);
$descripcion = htmlentities($_POST['descripcion'], ENT_QUOTES);
$fecha = htmlentities($_POST['fecha'], ENT_QUOTES);
$seccion = htmlentities($_POST['combo'], ENT_QUOTES);
***luego me conecto a la bda*** valido q los campos esten llenos***y de ahi uso este query, donde $seccion, supuestamente tiene la informacion del combo***
mysql_query("INSERT INTO datos(titulo,link,descripcion,fecha,seccion) VALUES('{$titulo}','{$link}','{$descripcion}','{$f echa}','{$seccion}'");
****me dice q datos ingresados, pero cuando veo la tabla, nada de nada, alguna idea?*****
Reply With Quote
Allandin is offlineReport Post
Administrator - Staff Manager

fedlerner's Avatar

Join Date: Aug 2006
Posts: 12,504
Credits: 105,752
fedlerner has a reputation beyond reputefedlerner has a reputation beyond repute
Location: Buenos Aires, Argentina

Send a message via AIM to fedlerner Send a message via MSN to fedlerner
Quote  
04-22-2008, 10:42 PM
Re: capturar el dato seleccionado de un combo box

Este foro es para soporte relacionado con tu cuenta de hosting, lo muevo a "Ayuda Web" que ahí te van a poder ayudar.
Te recomiendo que pidas la versión "Intermediate" de PHP en http://x10hosting.com/account

Saludos!
Reply With Quote
fedlerner is offlineReport Post
x10Hosting Member

Join Date: Feb 2008
Posts: 13
Credits: 278
Allandin is on a distinguished road
Quote  
04-23-2008, 03:31 AM
Re: capturar el dato seleccionado de un combo box

Gracias les estare eternamente agradecidos si me ayudan ASAP

Last edited by Allandin; 04-23-2008 at 03:35 AM. Reason: texto incompleto
Reply With Quote
Allandin is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 05:03 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

WoW Gold | Credit Cards | Mortgage | Credit Card | Loans