I'm new here an I need some help !
I have this form!
- Code: Select all
<form id="message_form">
<table>
<tr>
<td width="40">Catre</td>
<td><textarea id="to" id="to" name="to" rows="1" style="width: 604px;">{mail_from},</textarea></td>
</tr>
<tr>
<td>Subiect</td>
<td><input type="text" id="subject" name="subject" style="width: 604px; padding: 3px;" value="{subject}" /></td>
</tr>
<tr>
<td colspan="100%">
<textarea id="mail_message" name="mail_message" class="wymeditor"><p>{message}</p></textarea>
</td>
</tr>
</table>
</form>
<button id="send">Send</button>
<script type="text/javascript">
$(document).ready(function() {
$("#send").click(function() {
alert("Message sent!");
});
});
</script>
Now ... how the hack can I post the form to /?page=send ??
If it's possible without page refresh.
Thanks