Welcome to WebmasterWorld Guest from 54.167.129.169

Forum Moderators: open

Message Too Old, No Replies

Form not working in Internet Explorer

is working in both firefox and opera

     
3:27 am on Apr 7, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 8, 2004
posts:865
votes: 0


It must be something simple that I am just overlooking so I hope someone here might be able to spot it.

It works without a problem in firefox and opera but in IE6 it just refreshes the page. If I hit refresh in IE it says "...this page cannot be refreshed without resending data..." Any idead?

<form action="http://example.com/page" method="get" enctype="text/plain">
<table>
<tr>

<td>A<br />
<select name="a">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5" selected="selected">5</option></select>
</td>

<td>B<br />
<select name="b">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</td>

<td>
<input type="submit" value="Next"></input>
</td>

</tr>
</table>
</form>

3:16 pm on Apr 7, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member dreamcatcher is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 30, 2003
posts:3719
votes: 0


I`m guessing the problem is your form action:

[example.com...]

:)

3:49 pm on Apr 7, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Yes, the form's action is definitely the place I'd look first - is everything shipshape on whatever script catches the data? I assume the form points to a script, at any rate.

There also might be some peculiarity in the way you've set up the attributes in the select boxes. It's hard to say from the abbreviated code, but that's the other hot spot.

Basically it's:
1) catch the data with the form
2) pitch it to the server
3) do what you need to do with the data
4) throw it back to wherever it goes (database, new page, mailserver, whatever)

4:21 pm on Apr 7, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 8, 2004
posts:865
votes: 0


It was this enctype="text/plain", doesn't work in IE but Opera and Firefox have no problem with it. Once I removed it everything was fine.