Tema: Formulario
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/01/2013, 05:00
yolanda16568
 
Fecha de Ingreso: agosto-2011
Mensajes: 165
Antigüedad: 12 años, 8 meses
Puntos: 1
Formulario

base de datos: libre
tabla:menssages
estructuta.

id
subject
body
to
from
sended_on
read
forder_on
owner

Lo que quiero es meter dos registros no uno DOS alguien sabe como.

Código PHP:
<form action="<?php echo $editFormAction?>" method="post" name="form1" id="form1">
        <table width="487" align="center">
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Subject:</td>
            <td><input type="text" name="subject" value="" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">Body:</td>
            <td><input type="text" name="body" value="" size="32" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">&nbsp;</td>
            <td><input type="submit" value="Insertar registro" /></td>
          </tr>
        </table>
        <input type="hidden" name="to" value="<?php echo $row_usuario['usuario_id']; ?>" />
        <input type="hidden" name="from" value="<?php echo $row_menssages['id']; ?>" />
        <input type="hidden" name="sended_on" value="<?php echo $row_menssages['sended_on']; ?>" />
        <input type="hidden" name="read" value="0" />
        <input type="hidden" name="folder_id" value="<?php echo $row_carpetas['id']; ?>" />
        <input type="hidden" name="owner" value="<?php echo $row_menssages['id']; ?>" />
        <input type="hidden" name="MM_insert" value="form1" />
      </form>