Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/02/2007, 02:29
Avatar de andresq
andresq
 
Fecha de Ingreso: enero-2007
Ubicación: Chiapas, México
Mensajes: 161
Antigüedad: 17 años, 3 meses
Puntos: 1
Re: como declarar variable

Pues podrias insertar un campo oculto hidden, espero y te sirva:

Código PHP:
 <HTML  

<SCRIPT src="editor.js" type=text/javascript></SCRIPT>

<META method="post" action="<?php echo $_SERVER['REQUEST_URI'?>
onsubmit="editor1.prepareSubmit();" <FORM>
<SCRIPT type=text/javascript>
      var editor1 = new WYSIWYG_Editor('editor1');
      editor1.display();
     </SCRIPT>

<META</HEAD>
<BODY><INPUT type=submit value=boton name=update><BR><BR></FORM>
<DIV></DIV><?php
    
/*---->*/ echo "<input type='hidden' name='hiddenField' id='ID' value='valor'/>"//<----LA PUEDES INSERTAR YA SEA COMO PHP COMO HTML
    
if(isset($_POST['editor1_content'])){
?><?php echo nl2br(htmlentities($_POST['editor1_content'])); ?>
<DIV></DIV>
<DIV></DIV><?php
    
}
?><?php include_once 'site_menu.php'?></BODY></HTML>