You are here: Re: Form commit not working with IE « HTML « IT news, forums, messages
Re: Form commit not working with IE

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&oslash;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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация