The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Need help with html
poe34
post Apr 16 2012, 08:50 PM
Post #1





Group: Members
Posts: 2
Joined: 16-April 12
Member No.: 16,925



Hi, first post here!
I am currently taking a WBLS class and created a prototype for the class. There is something wrong with my code that won't allow the page to load, the address is correct however. Here is a link to the login page: http://gozips.uakron.edu/~dlp64/login.html You don't need a name or password since it's a prototype, you just click "login" and it should take you to the home page but it says: "The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access." If I highlight the address bar and click enter though it works so the address is displayed correctly in the address bar. Any help would be greatly appreciated!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 16 2012, 09:54 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Works fine to go directly to the page. I'm not familiar with IIS but I suspect the problem is that you use the POST method for form. If you change to GET I think it'll work. Fingers crossed. wink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Apr 17 2012, 01:50 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Or google for HTTP Error 405.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Apr 17 2012, 03:49 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE(pandy @ Apr 17 2012, 11:54 AM) *

Works fine to go directly to the page. I'm not familiar with IIS but I suspect the problem is that you use the POST method for form. If you change to GET I think it'll work. Fingers crossed. wink.gif


Hmm, but for any sort of "login" form, it's better to use POST than GET, because the password doesn't end up in server logs.

It seems unlikely that this server somehow can't handle POST; traditionally this is written in capitals, so the first thing to try is "POST" not "post". You could also ask your admin or try using OPTIONS (see the http article: http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol ) to find out what it does support.

Incidentally, the pixel-fixing table style really is an awful way to make web pages.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
poe34
post Apr 17 2012, 07:49 AM
Post #5





Group: Members
Posts: 2
Joined: 16-April 12
Member No.: 16,925



"GET" worked! Thank you, thank you, thank you!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 17 2012, 09:01 AM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Good! smile.gif

Brian, it isn't a login form. It's just a dummy. The action is set to the URL of the page to go to.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Apr 17 2012, 01:52 PM
Post #7


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE
Brian, it isn't a login form.


Well, on the page it says "Enter your login and password", and well, it's a form. If this is not a "login form", I'm a bit confused.

Of course I can see it's probably not "important", but it might grow into something important, in which case using GET is a bad idea.

QUOTE
The action is set to the URL of the page to go to.


Um, again, where else would you expect the form's action to point to but the page to be served when the form is submitted?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 17 2012, 03:58 PM
Post #8


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



To a script maybe. Anyway, the OP stated it was just for show.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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

 



- Lo-Fi Version Time is now: 20th April 2024 - 01:12 AM