Ver Mensaje Individual
  #7 (permalink)  
Antiguo 17/01/2012, 03:39
Fernando_net
 
Fecha de Ingreso: marzo-2010
Mensajes: 191
Antigüedad: 14 años, 1 mes
Puntos: 3
Respuesta: Registro con campos personalizados + Base de datos - No se guardan los dat

Os adjunto la estructura de la tabla wp_users.



Como podréis ver, los campos están en blanco



Y aquí tenéis el código PHP del formulario de registro. Como podréis comprobar, los nombres se llaman igual que están en la tabla:

Código PHP:
Ver original
  1. <div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
  2.     <?php $template->the_action_template_message( 'Registro' ); ?>
  3.     <?php $template->the_errors(); ?>
  4.     <form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register' ); ?>" method="post">
  5.         <p>
  6.             <label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Usuario', 'theme-my-login' ) ?></label>
  7.             <input type="text" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_login' ); ?>" size="20" />
  8.         </p>
  9.         <p>
  10.             <label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'Correo electrónico', 'theme-my-login' ) ?></label>
  11.             <input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="30" />
  12.         </p>
  13.         <p>
  14.             <label for="user_centro<?php $template->the_instance(); ?>"><?php _e( 'Centro de trabajo', 'theme-my-login' ) ?></label>
  15.             <input type="text" name="user_centro" id="user_centro<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_centro' ); ?>" size="60" />
  16.         </p>
  17.         <p>
  18.             <label for="user_especialidad<?php $template->the_instance(); ?>"><?php _e( 'Especialidad', 'theme-my-login' ) ?></label>
  19.             <input type="text" name="user_especialidad" id="user_especialidad<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_especialidad' ); ?>" size="50" />
  20.         </p>
  21.         <p>
  22.             <label for="user_participantes<?php $template->the_instance(); ?>"><?php _e( 'Número de participantes', 'theme-my-login' ) ?></label>
  23.             <input type="text" name="user_participantes" id="user_participantes<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_participantes' ); ?>" size="20" />
  24.         </p>
  25.         <p>
  26.             <label for="user_telefono<?php $template->the_instance(); ?>"><?php _e( 'Numero de teléfono *(opcional)', 'theme-my-login' ) ?></label>
  27.             <input type="text" name="user_telefono" id="user_telefono<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_telefono' ); ?>" size="9" />
  28.         </p>

Un abrazo!