Werner Partner <kairos@sonoptikon.de> wrote:
[color=blue]
>On my testpage
>
>
http://www.sonoptikon.de/test.php
>
><form action=test.php method="get">
><input style="width:150px;" type="Submit" value="Provisionsentwicklung">
><input type="hidden" name="mode" value="pr"
></form>[/color]
The hidden input tag is missing the > at the end.
So the browser may treat
<input type="hidden" name="mode" value="pr"</form>
as one tag and hence doesn't close the first form.
[color=blue]
><form action=test.php method="get">
><input style="width:150px;" type="Submit" value="IP-Entwicklung">
><input type="hidden" name="mode" value="ip"
></form>[/color]
Again the form isn't closed but that's irrelevant now as you have no
more forms in the page.
[color=blue]
>If I klick on any button, I get
>
>"http://www.sonoptikon.de/test.php?mode=pr&mode=ip"
>
>What is wrong?[/color]
What you effectively have is:
<form action=test.php method="get">
<input style="width:150px;" type="Submit"
value="Provisionsentwicklung">
<input type="hidden" name="mode" value="pr">
<input style="width:150px;" type="Submit" value="IP-Entwicklung">
<input type="hidden" name="mode" value="ip">
and the submitted result is correct for that.
[color=blue]
>It works correct with mozilla, you can see this error only in IE[/color]
For once Mozilla's error correction is kinder to mistakes than IE's.
Running your code through the validator would have pointed out this
mistake (and some others).
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>