Solucionar error en PHP

  • Autor Autor marcelo12239
  • Fecha de inicio Fecha de inicio
M

marcelo12239

No recomendado
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
hola no s ecom solucionar este errror
var LikeId = {/literal}{$LIKE_ID}{literal};


<script type="text/javascript">
function reportLike() {
$.facebox( 'Type in the reason for reporting this page.<br /><br /><input type="text" name="reportReason" id="reportReason" value="" style="width:100%;" /><br /><br /><div class="bluebutton-cont"><a class="bluebutton" onclick="reportLikeEnd();return false;">Continue</a></div>' );
}
function reportLikeEnd() {
var Reason = $( '#reportReason' ).val();
var LikeId = {/literal}{$LIKE_ID}{literal};
$.post( '{/literal}{if $_PRETTY_URLS}{$_SITE_SUBDIR}/report{else}report.php{/if}{literal}', { 'reason': Reason, 'id': LikeId }, function ( data, textStatus ) {
$.facebox( data );
});
}
</script>
 
estas cerrando mal, las llaves de smarty es asi {literal} //javascript {/literal}

PHP:
var LikeId = {literal}{$LIKE_ID}{/literal};
$.post( '{literal}{if $_PRETTY_URLS}{$_SITE_SUBDIR}/report{else}report.php{/if}{/literal}'


hola no s ecom solucionar este errror
var LikeId = {/literal}{$LIKE_ID}{literal};


<script type="text/javascript">
function reportLike() {
$.facebox( 'Type in the reason for reporting this page.<br /><br /><input type="text" name="reportReason" id="reportReason" value="" style="width:100%;" /><br /><br /><div class="bluebutton-cont"><a class="bluebutton" onclick="reportLikeEnd();return false;">Continue</a></div>' );
}
function reportLikeEnd() {
var Reason = $( '#reportReason' ).val();
var LikeId = {/literal}{$LIKE_ID}{literal};
$.post( '{/literal}{if $_PRETTY_URLS}{$_SITE_SUBDIR}/report{else}report.php{/if}{literal}', { 'reason': Reason, 'id': LikeId }, function ( data, textStatus ) {
$.facebox( data );
});
}
</script>
 

Temas similares

Atrás
Arriba