Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/04/2009, 14:26
demonfire
 
Fecha de Ingreso: octubre-2005
Mensajes: 23
Antigüedad: 19 años, 1 mes
Puntos: 0
Exclamación Validacion de codigo

Hola a todos

Quisiera saber si alguien me puede decirme donde esta el error en este codigo

<form action="<?php echo $mm_action_url ?>index.php" method="post" name="addtocart" id="addtocart<?php echo $i ?>" class="addtocart_form" <?php if( $this->get_cfg( 'useAjaxCartActions', 1 ) && !$notify ) { echo 'onsubmit="handleAddToCart( this.id );return false;"'; } ?>>

ya que al pasarlo por el HTML validator me dice lo siguiente:


Validation Output: 2 Errors

1. Error Line 499, Column 187: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

…eAddToCart( this.id );return false;">



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
2. Error Line 608, Column 187: document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag

…eAddToCart( this.id );return false;">



The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").


Desde ya agradezco su ayuda

Salu2