The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Need help with a form not working as it should, Form Help
Thunder_Cracker
post Sep 3 2006, 09:39 PM
Post #1





Group: Members
Posts: 4
Joined: 3-September 06
Member No.: 59



Why does my form go back to the index page when you click submit and not to the missing page or thankyou page like it is suppose to? Instead it goes back to the index page and puts all the form information in the address bar???? I have tried everything I know to try and I turn to you now for help.


David

http://www.beechwoodairpark.com/contact.htm
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Liam Quinn
post Sep 3 2006, 10:40 PM
Post #2


WDG Founder
***

Group: Root Admin
Posts: 52
Joined: 2-August 06
From: Canada
Member No.: 1



The thankyou.htm and missing.htm pages appeared fine for me when I tested it. Have you fixed it already?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 3 2006, 11:56 PM
Post #3


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



QUOTE

Why does my form go back to the index page when you click submit and not to the missing page or thankyou page like it is suppose to? Instead it goes back to the index page and puts all the form information in the address bar???? I have tried everything I know to try and I turn to you now for help.



Are you sure you have the settings of the FormMail script set up correctly?
http://www.scriptarchive.com/readme/formmail.html#setting_up
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Thunder_Cracker
post Sep 4 2006, 08:30 AM
Post #4





Group: Members
Posts: 4
Joined: 3-September 06
Member No.: 59



Yes the form works fine for me when I try to use it on another page all by itself. When I run the form I go back to the index page and this is whats in my address bar.

http://www.beechwoodairpark.com/index.shtm...lane=&info=

Liam you said its working fine for you so maybe its something with my computer??? Does it work for everyone else?

David
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Sep 4 2006, 10:50 AM
Post #5


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



Every browser I try does the same thing ->returns the URL you showed and a 404 page not found.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Liam Quinn
post Sep 4 2006, 11:53 AM
Post #6


WDG Founder
***

Group: Root Admin
Posts: 52
Joined: 2-August 06
From: Canada
Member No.: 1



It turns out that it only worked for me because I had JavaScript disabled. With JavaScript enabled, http://www.beechwoodairpark.com/headernew.js outputs a <form action="index.shtml"> tag that is not closed. You need to close that.

It looks like you're just using headernew.js as an #include mechanism. I recommend using a preprocessor or server-side include instead. For details, see http://htmlhelp.com/faq/html/design.html#include-file. With a better way of including files, you can validate your HTML and find errors like this one. Also, search engines are unlikely to find your included links if they're in JavaScript.

(Search engines are also unlikely to submit forms. Using <a href> links instead of forms would be better.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Thunder_Cracker
post Sep 4 2006, 08:01 PM
Post #7





Group: Members
Posts: 4
Joined: 3-September 06
Member No.: 59



QUOTE(Liam Quinn @ Sep 4 2006, 11:53 AM) *

It turns out that it only worked for me because I had JavaScript disabled. With JavaScript enabled, http://www.beechwoodairpark.com/headernew.js outputs a <form action="index.shtml"> tag that is not closed. You need to close that.

It looks like you're just using headernew.js as an #include mechanism. I recommend using a preprocessor or server-side include instead. For details, see http://htmlhelp.com/faq/html/design.html#include-file. With a better way of including files, you can validate your HTML and find errors like this one. Also, search engines are unlikely to find your included links if they're in JavaScript.

(Search engines are also unlikely to submit forms. Using <a href> links instead of forms would be better.)


Thank you very much for your help. I will read over the information you supplied me with and give it another try.


David
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Thunder_Cracker
post Sep 5 2006, 10:11 PM
Post #8





Group: Members
Posts: 4
Joined: 3-September 06
Member No.: 59



Liam can you give me an example for the code I need to put into my page. I tried the #include and it now shows some of the code in headernew.js.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Liam Quinn
post Sep 5 2006, 11:56 PM
Post #9


WDG Founder
***

Group: Root Admin
Posts: 52
Joined: 2-August 06
From: Canada
Member No.: 1



QUOTE(Thunder_Cracker @ Sep 5 2006, 11:11 PM) *

Liam can you give me an example for the code I need to put into my page. I tried the #include and it now shows some of the code in headernew.js.


<!--#include virtual="header.inc" -->

where header.inc would contain the HTML tags (not JavaScript) that you want to include.

There is a tutorial on #include at http://httpd.apache.org/docs/2.0/howto/ssi.html.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 02:56 PM