July 6, 200520 yr Hi I've created a database and I've created some custom CDML pages. And it is driving me mad. The form works fine but there is only one problem. When I fill in one of the fields and hit enter something strange happens. In safari i get the result as you would expect but in Internet Explorer I'm redirected to the error page i defined. When I press the search button in Explorer, everything works fine but when i press enter it won't. Even stranger, this page is an adaptation of a page i made for another database, and this one works perfectly in both safari and Explorer. I've tried almost everything that I could come up with... I've changed the names of the fields, turned indexing on and of in the DB, I've even built up the page from scratch but nothing seems to work. I'm working in filemaker 6 and here's the code I've been using <FORM ACTION="FMPro" METHOD="post"> <INPUT TYPE="hidden" NAME="-db" VALUE="FLIR_Design_Status.fp5"> <INPUT TYPE="hidden" NAME="-lay" VALUE="Algemeen"> <INPUT TYPE="hidden" NAME="-format" VALUE="FLIR_DB_result.htm"> <INPUT TYPE="hidden" NAME="-error" VALUE="FLIR_DB_error.htm"> <INPUT TYPE="hidden" NAME="-SortField" VALUE="Taalversies"> <INPUT TYPE="hidden" NAME="-SortORder" VALUE="Ascending"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#F0F0FF"> <td width="33%" height="30"><strong> ZOEKVENSTER 'STATUS DATABASE'</strong></td> <td width="33%" height="30"> </td> <td width="33%" height="30" bgcolor="#F0F0FF"> </td> </tr> <tr> <td width="33%" height="30">> Naam : </td> <td width="33%" height="30"><input name="Brochurenaam" type=text value="" size=20></td> <td width="33%" height="30"> </td> </tr> <tr> <td height="30"> Taal :</td> <td height="30"> <SELECT NAME="Taalversies"> <option value="">kies taal</option> <option value="EN">Engels</option> <option value="FR">Frans</option> <option value="DE">Duits</option> <option value="NL">Nederlands</option> <option value="IT">Italiaans</option> <option value="SP">Spaans</option> <option value="CH">Chinees</option> <option value="JP">Japans</option> </SELECT> </td> <td height="30"> </td> </tr> <tr bgcolor="#F0F0FF"> <td height="30"></td> <td height="30"><input type="submit" name="-Find" value="Zoeken"> <INPUT name="reset" TYPE="reset" VALUE="Wissen"></td> <td height="30" align="right"><input type="submit" name="-FindAll" value="Toon alle Records"></td> </tr> </table> </FORM>
July 6, 200520 yr Try adding this line: <input type="hidden" name="-find"> However, you may have problems because have both "-find" and "-findall" in the Form. You can solve that with a little bit of Javascript. Good Luck. Garry
July 7, 200520 yr Gaah! I'm so CDML rusty I didn't even realize Garry's answer was the same trick I use to use for that enter/return submit issue, except I had a space character value. <INPUT TYPE="hidden" NAME="-find" VALUE=" "> I used to just insert that before every submit button but when I started using IMG instead of submit buttons, I stopped for some reason, so it took me a while to find that bit of code. It works, though! Hey, Garry... what if he tries... <input type="hidden" name="-findall"> Hey, wobbie... you may also want to consider -max and nav links in case findall gets too big. --ST
Create an account or sign in to comment