
02/02/2007, 17:09
|
 | | | Fecha de Ingreso: febrero-2005 Ubicación: Lima
Mensajes: 481
Antigüedad: 20 años, 1 mes Puntos: 4 | |
Re: como declarar variable Haber:
$mensaje = 'El mensaje q quieres';
En ese tu formulario:
<FORM name=form1 action=procesa.php method=post encType=multipart/form-data>
<?php echo '<input type="hidden" name="mensaje" value='.$mensaje.'>';?>//aqui el text hidden toma el valor
<TABLE id=AutoNumber1 style="BORDER-COLLAPSE: collapse" borderColor=#111111
cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width="25%"> </TD>
<TD width="50%" colSpan=2>
<P align=center><FONT color=#ff0000 size=5><B>ENVIÓ DE
NOTICIAS</B></FONT></P></TD>
<TD width="25%"> </TD></TR>
<TR>
<TD width="25%"> </TD>
<TD width="25%"> </TD>
<TD width="25%"> </TD>
<TD width="25%"> </TD></TR>
<TR>
<TD width="25%"> </TD>
<TD width="25%">Titulo de Noticia</TD>
<TD width="25%"><INPUT size=17 name=titulo></TD>
<TD width="25%"> </TD></TR>
<TR>
<P align=center><INPUT class=cajatexto1 style="FONT-WEIGHT: bold" type=submit value="Enviar Datos" name=grabar>
.....
ahora en la pagina procesa.php
$el_mensaje = $_POST['mensaje'];
y todo lo demas
espero haberte ayudado
salud2 |