You are here: Re: Rows of records « HTML « IT news, forums, messages
Re: Rows of records

Posted by tony wong on 11/12/05 09:31

Thanks rf

it helps a lot.


"rf" <rf@invalid.com> ΌΆΌg©σΆl₯σ·s»D:14iq6v8i05n5t$.zr2blyv1gzv4$.dlg@40tude.net...
> 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.

 

Navigation:

[Reply to this 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация