Click to See Complete Forum and Search --> : form tag not working
pwin
July 25th, 2000, 01:38 AM
I have created a form in manual HTML format which looks like the following:
User ID:
Password:
But my browser does not seem to understand the form tag. A book I read say I might need ASP.exe and need to go and download from MS site. But I couldn't find one in there.
Why is it not recognizing it?
Regards
Peter
Johnny101
July 25th, 2000, 11:58 AM
your web server must be Windows NT Server with IIS 4 or above (3 will work, but you dont want it) to do ASP. If this form is displaying okay and then you click the Login button and nothing happens, or you get a dialog box asking you to download "loginFrm.asp", then your webserver isn't set up correctly. if the webserver is running okay, but yuo get an error saying that it couldn't find loginFrm.asp, then the loginFrm.asp file isn't in the same directory as this HTML login form. if neither of these scenarios describe what is happening, then it is something specific with the code. You say the browser doesn't recognize the form - does that mean that the two text boxes and buttons dont' show up? If so, then try removing the spaces between the attribute and value. eg:
change
<form action=loginfrm.asp method= POST>
<input type = "text" name = "name">
to
<form action=loginfrm.asp method=POST>
<input type="text" name="username">
i've had problems with HTML and spaces in the tags before.
if none of this helps, then reply with a more accurate description of what is going on.
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
pwin
July 25th, 2000, 10:07 PM
The browser just does not understand the form tag
which is . That means, it comes up with this coding in the browser without assuming it as one of the tags.
They are put into the same directory even though it says this page cannot be found. I tried accessing the loginFrm.htm either through the default.htm page as well as directly typing in the address of the file in case ASP do not get executed.
With the browser, the two buttons are not working.
When I use the 'Preview' feature of the MS Front Page 98, it either asks to download the file or say this page cannot be found.
The following is the code of loginFrm.htm if you want to examine.
User ID:
Password:
Regards
Pye
Johnny101
July 26th, 2000, 11:08 AM
>>The browser just does not understand the form tag
>>which is . That means, it comes up with this coding
>>in the browser without assuming it as one of the tags.
this is going to sound silly, but i think it could help. remove the spaces between the < and "Form" attributes. Notice how, here in your post, some of the HTML is processed instead of shown - like the text boxes and such? The FORM tag is a hidden element, but the text is displayed - meaning that the browser was not able to correctly parse it. That should make your form work.
as for the Preview in FrontPage- i've never used it, but if you are being prompted to download an ASP page, then you don't have a local webserver, either running or set up correctly. If you have Win2K, then you're running IIS, but if your running Win NT Workstation or Win9x, then you have to use Personal Web Server (PWS).
I know in Allaire's Homesite HTML editor, when i want to preview ASP pages, i have to set a server mapping for it to work. Tell the editor that when previewing asp pages, pass the current asp to a specified web server (local) for processing.
this should help. in general, since HTML is so picky - dont use spaces in anything except attribute seperation, try to use the same case through out an element. be careful when nesting elements (form, that holds a table that holds an input box) spacing and indenting are very important and easy to do.
good luck,
John
John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.