Thread Form Problem (10 answers)
Opened by esskar at 2004-04-10 06:38

esskar
 2004-04-10 06:38
#25660 #25660
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Hi...

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<form style="margin: 0px" method="post" action="/?section=portal;page=renewpassword" enctype="application/x-www-form-urlencoded">
<ul class="disc"><li><b>Login Daten</b><table border="0">
<tr>
  <td class="width_150">User:</td>
  <td><input class="text" type="text" name="uname" value="<TMPL_VAR NAME=UNAME>" /></td>
</tr>
<tr><td colspan="2"><img class="any" src="/skin/images/dummy.gif" alt="" width="1" height="18" /></td></tr>
<tr>
  <td class="width_150">&nbsp;</td>
  <td align="center"><input class="button" type="submit" name="do_renewpassword" value="Beantragen" /></td>
</tr>
</table>
</ul></li>
</form>


VS.

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<form style="margin: 0px" method="post" action="/?section=portal;page=login" enctype="application/x-www-form-urlencoded">
<ul class="disc"><li><b>Login Daten</b><table border="0">
<tr>
  <td class="width_150">User:</td>
  <td><input class="text" type="text" name="uname" value="<TMPL_VAR NAME=UNAME>" /></td>
</tr>
<tr>
  <td class="width_150">Password:</td>
  <td><input class="text" type="password" name="upassword" value="" /></td>
</tr>
<tr><td colspan="2"><img class="any" src="/skin/images/dummy.gif" alt="" width="1" height="18" /></td></tr>
<tr>
  <td class="width_150">&nbsp;</td>
  <td align="center"><input class="button" type="submit" name="do_login" value="Login" /></td>
</tr>
</table>
</ul></li>
</form>


Man sieht, dass Formular 1 nur ein Input Feld + Submit Button hat; Formular 2 hat 2 Input Felder.
Wenn ich im Browser (IE; rest hab ich noch nicht getestet) in Form 2 auf Return drücke, wird das formular verschickt und der server erhält auch das Feld "do_login";
Formular 1 schickt beim Return nicht das Feld "do_renewpassword" mit. Liegt es an mir; oder am Browser?


EDIT: macMecks hinweis\n\n

<!--EDIT|esskar|1081587956-->

View full thread Form Problem