Forum Moderators: open

Message Too Old, No Replies

Form Works in FF not IE7

Here is the code:

         

thedead

3:02 am on Sep 10, 2007 (gmt 0)

10+ Year Member



When I hit submit button nothing happens in IE, but works fine in firefox. Any ideas?

Here is the code:

<style>

#search, ul {
padding: 0px;
width: 200px;
height: 17px;
border: 1px solid #999;
font-family: verdana; arial, sans-serif;
font-size: 12px;
}
ul {
list-style-type: none;
font-family: verdana; arial, sans-serif;
font-size: 12px;
margin: 5px 0 0 0
}
li {
margin: 0 0 0px 0;
cursor: default;
color: blue;
background: #C0C0C0;
}
li:hover {
background: #00ff00;
}
.list {
margin-top: 0x;
margin-bottom: 0px;
}

</style>

<link rel="stylesheet" type="text/css" href="style/epoch_styles.css" />

<script type="text/javascript" src="javascripts/epoch_classes.js"></script>
<script type="text/javascript" src="javascripts/go_come.js"></script>
<script type="text/javascript" src="javascripts/prototype.js"></script>
<script type="text/javascript" src="javascripts/effects.js"></script>
<script type="text/javascript" src="javascripts/controls.js"></script>

<form action="add.php" method="post">
<label>How did you go?</label> <br>
<input type="radio" name="how" value="train">Train
<input type="radio" name="how" value="plane">Plane
<input type="radio" name="how" value="taxi">Taxi
<input type="radio" name="how" value="drive">Drive <br>
<table style="width: 300px">
<tr>
<td><label>When did you Arrive?</label></td>
<td><label>When Did you Leave?</label></td>
</tr>
<tr>
<td><input id="go_container" type="text" size="10" name="date_go">
<form id="date_go" method="get" action="#">
</form>
</td>
<td>
<input id="back_container" type="text" size="10" name="date_back">
<form id="date_back" method="get" action="#">
</form>
</td>
</tr>
</table>
<p class="list"><label>Where did you go?(Start Typing Country Name)</label>
<br>
<input type="text" id="search" name="search">
<span id="indicator1" style="display: none">
<img src="images/indicator.gif" alt="Working..."></span> <br>
</p>
<p class="list"><label>Why did you go?</label> <br>
<input type="radio" name="why" value="tourist">Tourist
<input type="radio" name="why" value="buisness">Buisness </p>
<br>
<input type="submit" value="Submit" name="submit">
</form>
<div id="hint"></div>

<script type="text/javascript">
new Ajax.Autocompleter("search","hint","server-country-list.php", {frequency: 0.1, indicator: \'indicator1\'});
</script>

vincevincevince

3:12 am on Sep 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You cannot nest forms... i.e. inside one <form> you cannot have another <form> - that's your main problem.

thedead

3:51 am on Sep 10, 2007 (gmt 0)

10+ Year Member



What is the best way to have a calendar popup to select a date?

thedead

3:53 am on Sep 10, 2007 (gmt 0)

10+ Year Member



I just took those out, and it still wont submit

thedead

11:09 am on Sep 10, 2007 (gmt 0)

10+ Year Member



I also have this in a php file if it makes any difference