Guest User

Untitled

a guest
Nov 23rd, 2017
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. echo ' <button type="button" class="btn btn-link btn-comentario-reposta" id="botao-esconde-resposta-'.$_POST['id'].'"
  2. onclick="acao_botao_esconde_resposta('.$_POST['id'].','. $btn_mostrar_resposta .')">Esconder respostas</button>';
  3.  
  4. echo ' <button type="button" class="btn btn-link btn-comentario-reposta" id="botao-esconde-resposta-'.$_POST['id'].'"
  5. onclick="acao_botao_esconde_resposta(''.$_POST['id'].'',''. $btn_mostrar_resposta .'')">Esconder respostas</button>';
  6.  
  7. $id = $_POST['id'];
  8. $email = $_POST['email'];
  9. $html = '<button id="btn-'.$id.'" onclick="func_teste('.$id.','.$email.')"></button>';
  10. echo $html;
  11.  
  12. <!-- código html -->
  13. <button id="btn-1" onclick="func_teste(1,email_teste@mail.com)"></button>
  14. <!-- código html -->
  15.  
  16. $id = $_POST['id'];
  17. $email = $_POST['email'];
  18. $html = '<button id="btn-'.$id.'" onclick="func_teste(''.$id.'',''.$email.'')"></button>';
  19. echo $html;
  20.  
  21. <!-- código html -->
  22. <button id="btn-1" onclick="func_teste('1','email_teste@mail.com')"></button>
  23. <!-- código html -->
  24.  
  25. <?php
  26. $id = $_POST["id"];
  27. ?>
  28. <button type="button" class="btn btn-link btn-comentario-reposta"
  29. id="botao-esconde-resposta-<?=$id?>"
  30. onclick="acao_botao_esconde_resposta('<?=id?>','<?=$btn_mostrar_resposta?>')">
  31. Esconder respostas
  32. </button>
Add Comment
Please, Sign In to add comment