Hi experts!
I need help for the following problem:
I have a form with several "rows" of dynamically created dropdown-boxes:
<form name="form" action="something.php" method="post" onSubmit="return chkFormular();">
<select name="1-HANS-1" size="1"> ... [with option fields]
<select name="1-FRIT-1" size="1"> ... [with option fields]
...
<select name="1-HANS-2" size="1"> ... [with option fields]
<select name="1-FRIT-2" size="1"> ... [with option fields]
...
<select name="1-HANS-3" size="1"> ... [with option fields]
<select name="1-FRIT-3" size="1"> ... [with option fields]
...
...
<select name="2-HANS-1" size="1"> ... [with option fields]
<select name="2-FRIT-1" size="1"> ... [with option fields]
...
<select name="2-HANS-2" size="1"> ... [with option fields]
<select name="2-FRIT-2" size="1"> ... [with option fields]
...
<select name="2-HANS-3" size="1"> ... [with option fields]
<select name="2-FRIT-3" size="1"> ... [with option fields]
...
so thats somehow two loops nested, one creates the first letter of the name and within this loop another loop that creates the second letter behind the name.
everything is dynamically created depending on the data in the database.
I need to check:
if the field "1-HANS-1" has option selceted with value > "0" then the filed "1-FRIT-1" MUST have selected a value bigger than "0".
[for both dropdown-fields the values are "0", "10", "20", ..., "100"]
and in same manner I need to compare "1-HANS-2" with "1-FRIT-2" and so on, until the inner loop is finished. And the same procedure for the "outer loop": "2-HANS-1" compared with "2-FRIT-2", then "2-HANS-2" with "2-FRIT-2" and so on.
can anyone help me?
I need help for the following problem:
I have a form with several "rows" of dynamically created dropdown-boxes:
<form name="form" action="something.php" method="post" onSubmit="return chkFormular();">
<select name="1-HANS-1" size="1"> ... [with option fields]
<select name="1-FRIT-1" size="1"> ... [with option fields]
...
<select name="1-HANS-2" size="1"> ... [with option fields]
<select name="1-FRIT-2" size="1"> ... [with option fields]
...
<select name="1-HANS-3" size="1"> ... [with option fields]
<select name="1-FRIT-3" size="1"> ... [with option fields]
...
...
<select name="2-HANS-1" size="1"> ... [with option fields]
<select name="2-FRIT-1" size="1"> ... [with option fields]
...
<select name="2-HANS-2" size="1"> ... [with option fields]
<select name="2-FRIT-2" size="1"> ... [with option fields]
...
<select name="2-HANS-3" size="1"> ... [with option fields]
<select name="2-FRIT-3" size="1"> ... [with option fields]
...
so thats somehow two loops nested, one creates the first letter of the name and within this loop another loop that creates the second letter behind the name.
everything is dynamically created depending on the data in the database.
I need to check:
if the field "1-HANS-1" has option selceted with value > "0" then the filed "1-FRIT-1" MUST have selected a value bigger than "0".
[for both dropdown-fields the values are "0", "10", "20", ..., "100"]
and in same manner I need to compare "1-HANS-2" with "1-FRIT-2" and so on, until the inner loop is finished. And the same procedure for the "outer loop": "2-HANS-1" compared with "2-FRIT-2", then "2-HANS-2" with "2-FRIT-2" and so on.
can anyone help me?