473,322 Members | 1,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Probleme mit Auswertung von Formulardaten

Zor
Hallo,

ich habe folgendes Formular...

<form method="post" action="nix.php" name="formular">
<input type="checkbox" value="aaa" name="formData[kategorie][0]"> aaa
<input type="checkbox" value="bbb" name="formData[kategorie][1]"> bbb
<input type="checkbox" value="ccc" name="formData[kategorie][2]"> ccc
.....
<input type="checkbox" value="zzz" name="formData[kategorie][n]"> zzz

<input type="checkbox" value="1" name="alle"> alle auswählen
</form>

Wenn ich nun die Checkbox "alle" anklicke sollen alle Checkboxen die
darüber stehen selektiert werden. Das Problem: auf den letzten button
kann ich mit document.formular.alle.checked den Status der Checkbox
setzen und auslesen. Aber wenn ich
document.formular.formData[kategorie][0].checked probiere, sagt
Javascript, das kategorie kein Objekt ist...

Bitte helft mir mal

Danke im Vorraus
Jul 20 '05 #1
1 2032
"Zor" <se***************@t-online.de> wrote in message
news:ab**************************@posting.google.c om...
ich habe folgendes Formular...

<form method="post" action="nix.php" name="formular">
<input type="checkbox" value="aaa" name="formData[kategorie][0]"> aaa
<input type="checkbox" value="bbb" name="formData[kategorie][1]"> bbb
<input type="checkbox" value="ccc" name="formData[kategorie][2]"> ccc
....
<input type="checkbox" value="zzz" name="formData[kategorie][n]"> zzz

<input type="checkbox" value="1" name="alle"> alle auswählen
</form>
<snip>document.formular.formData[kategorie][0].checked probiere, sagt

<snip>

I cannot read a word of German (?), but it looks like:-

document.formular['formData[kategorie][0]'].checked

or

document.forms['formular'].elements['formData[kategorie][0]'].checked

<URL: http://www.jibbering.com/faq/#FAQ4_25>

and

<URL: http://www.jibbering.com/faq/#FAQ4_39 >

....
var els = document.forms['formular'].elements;

for(var c = 0;c <= n;c++){
if(els[('formData[kategorie]['+c+']')].checked ){
...
}
}

Richard.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Geiregat Jonas | last post by:
I've created an instance of a class $smarty = new smarty(); then I create an other instance of an other class and sending the $smarty instance to that class $user = new user($smarty); This is...
1
by: cyril | last post by:
Bonjour à tous, j'utilise Apache php et mysql sans probleme, j'ai voulu passer pour des raisons pro sur IIS PHP MS SQL.IIS et PHP fonctionne bien, j ai decommenté la ligne pour ms sql, copier la...
2
by: grigoo | last post by:
bonjour a tous je me presente a vous::: greg dit le grigoo sur le web ,,etudiant en bioinformatique a montreal et jusqu au cou dans notre language prefere....java. et biojava.. et je suis en un...
0
by: Jan Metzger | last post by:
Probleme mit JOIN und COUNT, da ich sehr experimentierfreudig bin, versuche ich von zeit zu zeit neue Tabellen und abfragen-konstrukte für meine Community... da ich mir alles was ich über PHP...
2
by: loki | last post by:
hello, when i do ..... set xmlhttp = CreateObject("WinHTTP.WinHTTPRequest.5.1") ...... StrXmlhttpResponseText = xmlhttp.responseText StrXmlhttpResponseText = replace(StrXmlhttpResponseText,...
1
by: Badboy36 | last post by:
Hello user from googlegroups, i made a microsoft access database with front and backend. i created the backend in microsoft access97. for the frontend i made two versions (one for microsoft...
0
by: fishomen | last post by:
hello i have probome with my seesion_start. it make the browser (ie6) to make like it is loading, allthought it finish to load. it shoe that it still loading the page with the green status bar. ...
1
by: Michael M. | last post by:
off topic question: Forum for computer science / Informatik-Probleme? Is there a forum for computer science problems? (web or newsgroup etc.) For example, need to solve intersection problems. etc.
2
by: Winkl | last post by:
Hallo zusammen, ich bin gerade dabei meine 1. Homepage unter ASP.NET (VB) zu machen. Habe bis jetzt nur Erfahrung unter Access+VBA. Dabei sind folgende Probleme/Fragen aufgetreten: 1. Gibt es...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.