Rows of records

T

tony wong

i have a table with a number of rows to submit records by "input
type=submit"

how can i submit only those records when the click box is clicked?

now all the records are submitted

any hints?

Thanks a lot.

tony
 
R

rf

tony said:
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.
 
T

tony wong

Thanks rf

it helps a lot.


rf said:
tony said:
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.
 
T

Travis Newbury

tony wong said:
i have a table with a number of rows to submit records by "input
type=submit"
how can i submit only those records when the click box is clicked?
now all the records are submitted
any hints?

Because of your apparent skill level (not a snipe, just based on your
description of the problem) I think the best thing for you to do is
to go to www.w3schools.com (or search the group for "tutorials").
Then take about 2 hours and just read through some of the tutorials.

When you are done, you will be able to re-word your question and
probably get fitting answer. (And start 3 sub-threads on frames,
table layout, and if George Bush lied or not.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top