|
|
Subject:
Problem with Form submit - Javascript error
Category: Computers > Internet Asked by: paulfromwestwales-ga List Price: $20.00 |
Posted:
23 Sep 2004 09:57 PDT
Expires: 23 Oct 2004 09:57 PDT Question ID: 405313 |
Amending the text around an Input box for a site search, I did something that lost me the search function and gives error: "document.forms.searchsmall is null or not an object" It must be a javascript error, but can I find it! It is on a php page, but again I have been through every line of code and come to the conclusion that the php bit is working OK as it generates the counties OK for the search box - its just pressing search that doesn't work. The "holding" web page is: http://www.cottageholidays.co.uk/index.php and the search box is at default.inc.php |
|
Subject:
Re: Problem with Form submit - Javascript error
Answered By: palitoy-ga on 23 Sep 2004 10:38 PDT Rated: |
Hello paulfromwestwales-ga I have taken a look at your page and I believe the problem is due to a missing </form> tag. There are 3 <form> tags on the page but only two </form> tags. The missing </form> tag is the one after the second form on the page (the one regarding the login). If adding this missing </form> tag does not solve your problem can you please post the contents of the default.inc.php here as I could not download it to verify its contents. Incidentally, if you alter the settings in the form above the map and then press the submit button on the "login form" the "map form" does seem to work! If you have any further queries on this subject please ask for clarification and I will do my best to respond promptly. |
paulfromwestwales-ga
rated this answer:
Absolutely correct - answer solved problem and search box is now back in action. It may appear a simple solution, but I literally spent hours trying to fathom out what mistake I had made on this page. The fact that I should have looked at the previous page I amended is now glaringly obvious. Thank you for solving this. I am really grateful. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |