Jump to content
php.lv forumi

Update form ar checkboxiem


marisbag

Recommended Posts

Sveiki!

Es veelos izveidot update formu kuraa galvenaas lietas jaanoraada ar checkboxiem. Jautaajums: Kaa vareetu panaakt lai chekbox no datubaazes ieguust savu veertiibu 1:checked 0:uncheked. Uz doto briidi katru reizi atverot formu visi chekboxi ir unchecked.

Link to comment
Share on other sites

  • 1 year later...

netaisot jaunu topiku gribeju pasmelties info par checkbox un javascript pielietojamiibu..

 

ir sekojoshs kods, kas pie checkboxa aizpildiishanas uztaisa submit formai..

<input type="checkbox" name="name" value="value" onclick="if(this.checked) this.form.submit();" >

 

kas jāpievieno klāt lai notiktu submit formai arī pie ķekša izņemšanas?

paldies par atsauciibu

Link to comment
Share on other sites

  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...