Gabriel Greiner 0 Denunciar post Postado Julho 8, 2014 Pessoal, preciso de uma ajuda com um formulario, eu fiz esse formulario mas gostaria que ele não abrisse a action, enviasse tudo normal, porém sem sair da página em que o usuário está (e sem iframe, por favor) este é o código: <form name="input" action="<?php echo $funclink; ?>" method="post"> <font color="#555555">IP:</font> <input type="text" name="ip" size="15" maxlength="15" class="main" onblur = "if ( this.value=='' ) this.value = '0.0.0.0';" onfocus = " if ( this.value == '0.0.0.0' ) this.value = '';"> <br> <font color="#555555">Time (sec):</font> <input type="text" name="time" size="5" maxlength="2" class="main" onblur = "if ( this.value=='' ) this.value = 'time (in seconds)';" onfocus = " if ( this.value == 'time (in seconds)' ) this.value = '';"> <br> <font color="#555555">Port:</font> <input type="text" name="port" size="12" maxlength="5" class="main" onblur = "if ( this.value=='' ) this.value = 'port';" onfocus = " if ( this.value == 'Porta' ) this.value = '';"> <br><br> <input type="submit" value=" Send Attack "> <br><br> </form> alguem poderia me ajudar? obrigado. Compartilhar este post Link para o post Compartilhar em outros sites
reebr 94 Denunciar post Postado Julho 9, 2014 Javascript, com ajax. EN: http://code.tutsplus.com/tutorials/submit-a-form-without-page-refresh-using-jquery--net-59 PT: http://wbruno.com.br/ajax/enviar-formulario-para-php-sem-refresh-jquery-ajax/ Compartilhar este post Link para o post Compartilhar em outros sites
victorqueiroz 34 Denunciar post Postado Julho 14, 2014 Você tem que usar Ajax http://viniciuswebdev.com/fazendo-uma-requisicao-ajax-com-jquery/ Compartilhar este post Link para o post Compartilhar em outros sites