Foros del Web » Programando para Internet » Javascript »

Como puede ser posible? :S

Estas en el tema de Como puede ser posible? :S en el foro de Javascript en Foros del Web. Hola, agregue una barra de bbcode a un textarea de mi web... Ahora cuando yo voy a enviar, no me toma $message (el textarea), como ...
  #1 (permalink)  
Antiguo 07/06/2009, 20:34
 
Fecha de Ingreso: abril-2009
Mensajes: 5
Antigüedad: 15 años
Puntos: 0
Como puede ser posible? :S

Hola, agregue una barra de bbcode a un textarea de mi web...

Ahora cuando yo voy a enviar, no me toma $message (el textarea), como si ya no se llamara asi o no estuviera dentro del form...

y si cambio el ID pongo algo diferente (dejando asi de funcionar la barra de bbcode) y dejando $message como nombre si me lo acepta, pero cuando el ID coincide para hacer el la barra de bbcode no me acepta el textarea...

Aca esta el codigo, acazo se necesita saber si como es el JS? , por favor ayudenme!

Código:
<?php 
require"config.php"; 
require"functions.php"; 
session_start(); 
?>
<html>
<head>
<title>Añadir guia - <?=$sitename;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style1.css" rel="stylesheet" type="text/css">
<script src="sys.js"></script><script src="script.js"></script>
<script src="acciones-ez-1.0.js"></script>
<link rel="stylesheet" type="text/css" href="estilo-ez-1.0.css" />
<link rel="stylesheet" type="text/css" href="php.css" />
</head><body><table width="624" bgcolor="#000000">
<tr>
<td width="624" valign="top" bgcolor="#000000"><div align="left">
<div align="center">
<table border="0" width="775" cellpadding="0" cellspacing="2" align="center" bgcolor="#999999">
<? if($go==="add" && $add_name && $add_version && $message && $add_nick && isset($_SESSION['captcha_spam']) && $_POST["captchacode"] == $_SESSION['captcha_spam'])
{
add_queue($add_name, $add_version, $message, $add_nick);
unset($_SESSION['captcha_spam']); ?>
<table width="600" border="1" align="center">
<tr>
<td colspan="2">
<div align="center">
<strong><font size="6"><u>Serial Añadido!</u></font></strong></div></td></tr><tr>
<td colspan="2" valign="top">Hola, <?=$add_nick?> gracias por añadir su guia <strong>"<?=$add_name?>"</strong> con el resto de nosotros!</td></tr></table>
<p>&nbsp;</p></div>
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" bgcolor="#000000">
<tr></div>
</td></td></tr></table>
<?
}
elseif($go === "add")
{
$error = "Haz olvidado llenar algo!";
}
if($go==="add" && $_POST["captchacode"] !== $_SESSION['captcha_spam'])
{
$error = "Codigo de Seguridad erroneo o haz olvidado llenar algo!";
}
?>
<?
 echo'</center></div>
<div class="box_rss"><p><font size="6"><strong><u>Añadir Guia</u></strong></font></p></div></div><br>';

echo '<form action="add2.php" method="post" target="_self">

<b class="size11">Titulo de la guia:</b><br>
<input type="text" name="add_name" id="add_name" value="' , $add_name , '" size="60" maxlength="30">
<br>
<table width="600" border="0">
    <textarea style="height:300px;width:615px;" id="message" name="message" class="markItUpEditor" tabindex="3">' , $message , '</textarea>
<br><tr><td width="97" valign="top">Clases:</td>
    <td width="493">

<input name="add_version" value="' , $add_version , '" type="text" id="add_version" size="41" maxlength="30">
 Ej: Fighter, Necromancer</td></tr>
  <tr>
    <td valign="top">Tu Nick: </td>
    <td><input name="add_nick" value="' , $add_nick , '" type="text" id="add_nick" size="41" maxlength="30"></td>
  </tr>
  <tr>
	<td><img src="captcha.php" border="0" title="Security Code"></td>
	<td><input type="text" name="captchacode" size="5"></td>
  </tr>
  <tr>
    <td valign="top">&nbsp;</td>
    <td>
    <input type="submit" value="Añadir"><input name="go" type="hidden" value="add"></td>
  </tr>
</table></form></td>';
 ?>
<tr><td colspan="2"><font color="red"><?=$error?></font></td>
  </tr>
</div>
</td>
    </tr>
  </table>
 <tr>
<td align="left"  bgcolor="#000000"></td>
<td align="right" bgcolor="#000000"></td>
</tr>
  </table>
</td>
    </tr>
  </table>
</body>
</html>
  #2 (permalink)  
Antiguo 07/06/2009, 20:56
 
Fecha de Ingreso: abril-2009
Mensajes: 5
Antigüedad: 15 años
Puntos: 0
Respuesta: Como puede ser posible? :S

Ya lo solucione, puse el Form arriba de todo, pero ahora me dice el error todo el tiempo! :S


Pero lo postea
  #3 (permalink)  
Antiguo 07/06/2009, 23:04
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Como puede ser posible? :S

Tema trasladado desde PHP
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:54.