Whats wrong with this html code

  • Thread starter Thread starter Paul M
  • Start date Start date
P

Paul M

Hi
The form code is appearing as text on the page when previewed
Why?
Best wishes
Paul M

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>
<body>
< form method=post action="send_pass.asp">
< center> < h2> Forgot Password! Enter your Email ID< /h2> < br>
< input type=text name=email> < br>
< input type="submit" value="Enter Your Email ID"> < input type="reset"
value="Clear Value">
< /center>
< /form>
< /body>
< /html>
 
Some of your opening HTML tags have spaces in them. Example:

< form method=post action="send_pass.asp">

should be:

<form method=post action="send_pass.asp">

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Well, yes, technically, the quotes should be there. It will work without
them, however.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Well, Murray, I have SOME idea: probably forever.


;-)

Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
Maybe not.... 8)

--
Murray

Kevin Spencer said:
Well, Murray, I have SOME idea: probably forever.


;-)

Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
As Kevin pointed out, remove the leading space after each starting less than (<) in all tags
< form method=post action="send_pass.asp">
should be
<form method=post action="send_pass.asp">

--




| Thanks Guys
| Paul M
| | > Hi
| > The form code is appearing as text on the page when previewed
| > Why?
| > Best wishes
| > Paul M
| >
| > <html>
| > <head>
| > <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
| > <title>New Page 2</title>
| > </head>
| > <body>
| > < form method=post action="send_pass.asp">
| > < center> < h2> Forgot Password! Enter your Email ID< /h2> < br>
| > < input type=text name=email> < br>
| > < input type="submit" value="Enter Your Email ID"> < input type="reset"
| > value="Clear Value">
| > < /center>
| > < /form>
| > < /body>
| > < /html>
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top