[thelist] Form Submission (POST)
Burhan Khalid
burhankhalid at members.evolt.org
Mon Jun 17 03:40:00 CDT 2002
> It is possible to have 2 different submit buttons, but how
> different is
> the data you want to submit?
Not very different. I had been doing it via a link (using GET). But I
would not
like the information to be displayed on the adderess bar, so I decided
to do POST.
Here is the form :
<form action="<?= $currentPage; ?>" method="post">
<input type="hidden" name="verb" value="prev">
<input type="hidden" name="id" value="<?= $prevVal; ?>">
<button type="submit">< <</button>
</form>
<form action="<?= $currentPage; ?>" method="post">
<input type="hidden" name="verb" value="next">
<input type="hidden" name="id" value="<?= $nextVal; ?>">
<button type="submit">> ></button>
</form>
What I would like, is one form, but two buttons. One for forward, and
one for backward.
thanks for the help,
Burhan
More information about the thelist
mailing list