Google Answers Logo
View Question
 
Q: Problem with Form submit - Javascript error ( Answered 5 out of 5 stars,   0 Comments )
Question  
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
Answer  
Subject: Re: Problem with Form submit - Javascript error
Answered By: palitoy-ga on 23 Sep 2004 10:38 PDT
Rated:5 out of 5 stars
 
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:5 out of 5 stars
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.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy