Reply to Re: Rows of records

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация