Need help with a form not working as it should, Form Help |
Need help with a form not working as it should, Form Help |
Thunder_Cracker |
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 |
Liam Quinn |
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?
|
jimlongo |
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 |
Thunder_Cracker |
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 |
jimlongo |
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.
|
Liam Quinn |
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.) |
Thunder_Cracker |
Sep 4 2006, 08:01 PM
Post
#7
|
Group: Members Posts: 4 Joined: 3-September 06 Member No.: 59 |
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 |
Thunder_Cracker |
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.
|
Liam Quinn |
Sep 5 2006, 11:56 PM
Post
#9
|
WDG Founder Group: Root Admin Posts: 52 Joined: 2-August 06 From: Canada Member No.: 1 |
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. |
Lo-Fi Version | Time is now: 20th April 2024 - 04:26 AM |