Welcome to WebmasterWorld Guest from 54.145.181.138

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)

WebmasterWorld Senior Member 10+ Year Member



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)

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



I`m guessing the problem is your form action:

[example.com...]

:)

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

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



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)

WebmasterWorld Senior Member 10+ Year Member



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.