1
I’m creating a mural, but I’d like to know how to do it so that when I click on the Publish button, the user’s message automatically appears in the div below the form, without the need for page refresh. Kind of like the Facebook posts. The database registration I know how to do, but jquery is not my strong suit.
<form method="post" class="form-control">
<div class="form-group">
<label for="mensagem">Qual sua ideia?</label>
<textarea name="Mensagem" class="form-control"></textarea>
</div>
<button type="submit" class="btn btn-primary">Publicar</button>
</form>
<div id="mostrarMensagens"></div>
What to do Ajax. The form is submitted to the same form page?
– Sam
Hello dvd. This will be for the same page.
– user24136
There’s no way you can create a . php file just to handle this?
– Sam