You are not logged in.

wcf.regNote.message

bauser

Intermediate

  • "bauser" started this thread

Posts: 384

Occupation: Senior Software Engineer

  • Send private message

1

Thursday, March 17th 2005, 4:54pm

Formular wird ungewollt abgeschickt

Hi!

Ich habe das Problem, dass das Formular, wenn ich den Knopf "Alle Komponenten gewählt." drücke, einfach abgeschickt wird, ohne dass ich das aber will. Kann mir vielleicht jemand sagen was ich falsh gemacht habe ? Danke

MfG

bauser

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>
    Kassenautomat zusammenstellen
</title>
</head>
<body>
<center>
<form action="makeconfig.php" method="get" name="configure">
<input type="hidden" value="MAKEPAY" name="content">
<table class="cMakePay">
    <tr>
        <td class="cPaystationDevice" colspan="2">
            Bildschirm
        </td>
        <td class="cPaystationDevice" colspan="2">
            Münzprüfer
        </td>
        <td class="cPaystationDevice" colspan="2">
            Banknotenprüfer
        </td>
        <td class="cPaystationDevice" colspan="2">
            Quittungsdrucker
        </td>
        <td class="cPaystationDevice" colspan="2">
            Ticketdrucker
        </td>
    </tr>
    <tr>
        <td class="cChooseRadio">
            <input type="radio" name="display" value="0">
        </td>
        <td class="cPaystationComponent">
            12 "
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="coinchecker" value="0">
        </td>
        <td class="cPaystationComponent">
            EMP780
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="notechecker" value="0">
        </td>
        <td class="cPaystationComponent">
            Gpt 
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="receiptprinter" value="0">
        </td>
        <td class="cPaystationComponent">
            Hengstler Pixi
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="ticketprinter" value="0">
        </td>
        <td class="cPaystationComponent">
            Epson ET 510
        </td>
    </tr>
    <tr>
        <td class="cChooseRadio">
            <input type="radio" name="display" value="1">
        </td>
        <td class="cPaystationComponent">
            12 "
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="coinchecker" value="1">
        </td>
        <td class="cPaystationComponent">
            WH 200
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="notechecker" value="1">
        </td>
        <td class="cPaystationComponent">
            JCM
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="receiptprinter" value="1">
        </td>
        <td class="cPaystationComponent">
            Epson (Endlos)
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="ticketprinter" value="1">
        </td>
        <td class="cPaystationComponent">
            Hengstler Primo
        </td>
    </tr>
    <tr>
        <td class="cChooseRadio">
            <input type="radio" name="display" value="2">
        </td>
        <td class="cPaystationComponent">
            12 "
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="coinchecker" value="2">
        </td>
        <td class="cPaystationComponent">
            Money Controls SR5
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="notechecker" value="2">
        </td>
        <td class="cPaystationComponent">
            MARS BNA50
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="receiptprinter" value="2">
        </td>
        <td class="cPaystationComponent">
            Epson (Ticket)
        </td>
        <td class="cChooseRadio">
            &nbsp;
        </td>
        <td class="cChooseRadio">
            &nbsp;
        </td>
    </tr>
    <tr>
        <td class="cChooseRadio">
            <input type="radio" name="display" value="3">
        </td>
        <td class="cPaystationComponent">
            12 "
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="coinchecker" value="3">
        </td>
        <td class="cPaystationComponent">
            mit MDB-Protokoll
        </td>
        <td class="cChooseRadio">
            &nbsp;
        </td>
        <td class="cChooseRadio">
            &nbsp;
        </td>
        <td class="cChooseRadio">
            <input type="radio" name="receiptprinter" value="3">
        </td>
        <td class="cPaystationComponent">
            Edue
        </td>
        <td class="cChooseRadio">
            &nbsp;
        </td>
        <td class="cChooseRadio">
            &nbsp;
        </td>
    </tr>
    <tr>
        <td colspan="10">
            <button class="cMadePay" onClick="document.getElementById('Name').style.visibility='visible;'">
                Alle Komponenten gewählt.
            </button>
        </td>
    </tr>
</table>
<table id="Name" class="cMakePay" style="visibility: hidden;">
    <tr>
        <td align="center"Bitte geben Sie einen Namen für das Gerät ein: </td>
    </tr>
    <tr>
        <td align="center"> <input type="textbox" name="name"> </td>
    </tr>
    <tr>
        <td>
<!--
            <button class="cMadePay" onClick="document.configure.submit()">
                Kassenautomat fertig konfiguriert
            </button>
//-->
            <input type="submit" class="cMadePay" value=" Kassenautomat fertig konfiguriert ">
        </td>
    </tr>
</table>
</form>
</center>
</body>
</html>
I'm Tony Menthanar! You fuck wit me, you fuckin' wit da best!

Ephraim

Professional

Posts: 826

Location: coder-board.info

Occupation: Info-Student

  • Send private message

2

Friday, March 18th 2005, 8:28am

Also erklären kann ich mir das auch nicht, aber wenn du den button in ein input
verwandelst gehts:

Source code

1
<input type="button" class="cMadePay" onClick="document.getElementById('Name').style.visibility='visible;'" value="Alle Komponenten gewählt." />



Ciao Ephraim

bauser

Intermediate

  • "bauser" started this thread

Posts: 384

Occupation: Senior Software Engineer

  • Send private message

3

Friday, March 18th 2005, 10:08am

jo, hab ich heute morgen dann auch gemacht. warum das nicht geht ist mir auch schleierhaft. danke trotzdem.
I'm Tony Menthanar! You fuck wit me, you fuckin' wit da best!

wcf.user.socialbookmarks.titel