|
Posted by rf on 11/12/05 09:12
tony wong wrote:
> i have a table with a number of rows to submit records by "input
> type=submit"
Er, no you don't. You have a form that has a bunch of form fields in it.
These *may* be presented to your viewer inside a table, organised as
"fields" within "records". MyPhpAdmin does this very thing.
> how can i submit only those records when the click box is clicked?
You can't, that is not how forms work[1]. Everything is sent up to the
server.
> now all the records are submitted
Yep. The big question now is: What is the *real* problem with that :-)
> any hints?
Interrogate the check box status in your server side process. If the box is
not checked then don't process that "record".
[1] You *could* use some klunky javascript to, say, remove/disable the
relevant rows and/or form fields if the checkbox is not checked but why?
Your server side process still has to check anyway, in case javascript is
disabled. Besides, you may confuse your viewers browser, fiddling with the
form during the onsubmit event handler :-)
If it is a bandwidth issue then it isn't. You just sent them down, along
with all sorts of stuff wrapped around them. Sending them back should not
be a problem.
--
Cheers, Richard.
[Back to original message]
|