|
Posted by Jonathan N. Little on 06/25/06 16:09
jah@logimatic.dk wrote:
> I made the following code which works just fine in Firefox, but when I
> tested it in IE nothing at all happens. The expected reaction would be
> that my index.php file is called with the parameters specified when I
> press the search button.
Two errors:
1) You cannot nest the FORM between the TABLE and TR tags
WRONG:
<table><form><tr><td>...</td></tr></form></table>
CORRECT:
<form><table><form><tr><td>...</td></tr></form></table></form>
OR:
<table><tr><td><form>...</form></td></tr></table>
2) Markup error, you are missing the '>' on the opeing TABLE tag
>
> print ("<table class=\"MenuNormal\" border=\"0\" cellpadding=\"5\"
> cellspacing=\"2\" width=\"100%\" \n") ;
^
|
Missing '>' here------------------+
> printf("<form method=post
> action=\"index.php?Menu=%s&Action=search\">", $Menu) ;
> printf(" <tr><td><input type=\"text\" name=\"TextSearch\"
> value=\"%s\" size=\"15\" maxlength=\"100\"></td></tr>\n", $searchdata)
> ;
> printf(" <tr><td><input type=\"submit\"
> value=\"Søg\" name=\"SearchData\"></td></tr>\n") ;
> printf("</form>\n") ;
> printf("</table>\n") ;
>
>
> Anybody know what is wrong here ?
>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|