You are here: Re: give one hidden var to another, for multi delete, how? « All PHP « IT news, forums, messages
Re: give one hidden var to another, for multi delete, how?

Posted by Jim Michaels on 02/27/06 20:35

"Jim S." <jim@yeah.com> wrote in message
news:vVOIf.11962$Nv2.6698@newsread1.news.atl.earthlink.net...
> ok, here is my problem: ready?
>
> i have a table of multiple columns and 3 row, now on the mid row in last
> right cell, i have a form, to do some update for a pic, (no problem here).
> now, what am trying to do is making a multiple delete checkboxes, where
> when i list all the records (which are basically the second and third row
> repeated)
> i have a check mark on the far left , where i want to check so i can
> delete one or more records, by pushing that top "Delete" word (or button)
> that i mentioned earlier.
> now the problem is i am not able to give the value of the checkbox to the
> hidden value for the form where the Delete word is (or button),
> so how can i give the value of the "checkbox" to the Hiden variable with
> the Delete word (or button)?
>
> Note: i can not envelop all the table with a form since i already have a
> form in the far right cell . (that is why i mentioned it before)
>
> so what can i do?
>
> thanks all
> Jim
>
>
with javascript. note that people with disabilities use some machines that
have no javascript.
if your checkbox is in the first form and the hidden value is in the second
form,

if (document.forms[0].mycheckbox.checked) {
document.forms[1].myhidden.value=document.forms[0].mycheckbox.value;
}

 

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

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