Ajax form post syntax

Ajax form post syntax

Hi everyone
I'm in the process of trying to jQuery our intranet DB system up a bit, but I'm getting into problems because I don't really know how to write the jquery syntax properly. I've only ever done basic JS for form validation etc. I'm getting there gradually though.

I've made a reminders system, where on every page the following jQuery happens:
// REMINDERS POLL AJAX
$('#reminders').oneTime(9000, function() {
    $(this).load('/reminder_poll.php?');
});
$('#reminders').everyTime(45000, function() {
    $(this).load('/reminder_poll.php?');
});

So after 9 seconds, the #reminders <div> tag is updated from reminder_poll.php, then every 45s after that. I'm using the timers plugin and It seems to be working great. I've got some PHP header functions set in reminder_poll.php to avoid caching.

Within the HTML content returned from reminder_poll.php, I have a simple form. At the moment the form just has action="/reminder_snooze.php", then if reminder_snooze.php is successful it just does a PHP header() redirect back to the previous page.
Reliable, but not the slickest way of doing things these days!

But I've just found the jQuery.post function so I'm trying to use that instead, and here's what I've got so far:
$.post('/reminder_snooze.php', {value1: document.form.input1.value, value2: document.form.input2.value}, $('#reminders').load('/reminder_poll.php?');, 'text');


And here's my very basic questions ;)
1) What's the best way to attach this to my form, as an onsubmit in the form tag?
Or onclick on the input button?
Or is there a better jQuery way of attaching this to my form?

2) How do I arrange the data parameter in this function? I want it to POST the data of 2 form inputs.
Above I've done it with the document.form.input.value old-JS way of doing things. I'm guessing there's a better jQuery way to do this as well?

3) Is my callback syntax correct?
If the POST AJAX succeeds, I want to update #reminders again with the contents returned by reminder_poll.php

At the moment I'm sort of stuck without knowing how to do #1 correctly, I can't really test the POST.
There's no data I want returned by this, just a simple... success then reload reminder_poll.php

Any ideas/suggestions?

Cheers, B