Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > invalid form

Reply
Thread Tools

invalid form

 
 
Red
Guest
Posts: n/a
 
      12-16-2004
Here's the error:
This page is not Valid HTML 4.01 Strict!
end tag for "FORM" which is not finished

The error occurs on the first '/' in "https://" of this line:
<FORM NAME=login ACTION=https://thesite.com/login.php METHOD=post>

here is the code:
<fieldset> <legend>User login</legend>
<FORM NAME=login ACTION=https://thesite.com/login.php METHOD=post> <p>
Username
<INPUT type="text" name="username" size="8" MAXLENGTH="20">
Password
<INPUT type="password" name="password" size="8" MAXLENGTH="20">
<INPUT TYPE=checkbox NAME=rememberme VALUE=1><INPUT type="submit"
name="action" value="Go!">
<A href="forgotpasswd.php">Forgot your password?</A>
</p></FORM></fieldset>


It seems to be telling me I can't put an url in the action - is that
correct or is it telling me something else ? How do I fix it ?
 
Reply With Quote
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      12-17-2004
Previously in alt.html, Red <> said:

> Here's the error:


Where's the URI?

> This page is not Valid HTML 4.01 Strict!
> end tag for "FORM" which is not finished


Generally this means something is nested incorrectly. But without being
able to see the page, that's impossible to tell.

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
 
 
 
Red
Guest
Posts: n/a
 
      12-17-2004
Mark Parnell wrote:
> Previously in alt.html, Red <> said:
>
>
>>Here's the error:

>
>
> Where's the URI?
>
>
>>This page is not Valid HTML 4.01 Strict!
>>end tag for "FORM" which is not finished

>
>
> Generally this means something is nested incorrectly. But without being
> able to see the page, that's impossible to tell.


I thought I posted enough code, but here's a simple test page which has
the same error: http://reenie.org/test.test.htm

Red
 
Reply With Quote
 
Michael Winter
Guest
Posts: n/a
 
      12-17-2004
On Thu, 16 Dec 2004 23:56:42 GMT, Red <> wrote:

[snip]

> <FORM NAME=login ACTION=https://thesite.com/login.php METHOD=post>


From an SGML point-of-view, the two slashes form a short tag. Quote the
attribute value.

> here is the code:
> <fieldset> <legend>User login</legend>
> <FORM


Out of curiosity, why is your fieldset outside the form? It's legal but
unusual. FIELDSET elements are meant to group the controls within a form,
not forms themselves.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      12-17-2004
Previously in alt.html, Red <> said:

> I thought I posted enough code, but here's a simple test page which has
> the same error: http://reenie.org/test.test.htm


404

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Red
Guest
Posts: n/a
 
      12-17-2004
Mark Parnell wrote:
> Previously in alt.html, Red <> said:
>
>
>>I thought I posted enough code, but here's a simple test page which has
>>the same error: http://reenie.org/test.test.htm

>
>
> 404
>

sorry
http://reenie.org/test/test.htm
 
Reply With Quote
 
Red
Guest
Posts: n/a
 
      12-17-2004
Michael Winter wrote:
> On Thu, 16 Dec 2004 23:56:42 GMT, Red <> wrote:
>
> [snip]
>
>> <FORM NAME=login ACTION=https://thesite.com/login.php METHOD=post>

>
>
> From an SGML point-of-view, the two slashes form a short tag. Quote
> the attribute value.
>


Thanks. That did it.
>> here is the code:
>> <fieldset> <legend>User login</legend>
>> <FORM

>
>
> Out of curiosity, why is your fieldset outside the form? It's legal but
> unusual. FIELDSET elements are meant to group the controls within a
> form, not forms themselves.


I just learned about the fieldset tag- here is the url I used as an example
http://www.w3schools.com/tags/tryit....yhtml_fieldset
If I put it about a form element it just puts a box around that element.
but If I put it around the form it breaks for the legend at the top,
which I like.



>
> [snip]
>
> Mike
>

 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      12-17-2004
Previously in alt.html, Red <> said:

> I just learned about the fieldset tag- here is the url I used as an example
> http://www.w3schools.com/tags/tryit....yhtml_fieldset
> If I put it about a form element it just puts a box around that element.
> but If I put it around the form it breaks for the legend at the top,
> which I like.


As Michael said, it should be used to group form elements - so basically
replace the paragraph in your example with a fieldset. One fieldset
around all the input elements.

--
Mark Parnell
http://www.clarkecomputers.com.au
 
Reply With Quote
 
Red
Guest
Posts: n/a
 
      12-17-2004
Mark Parnell wrote:
> Previously in alt.html, Red <> said:
>
>
>>I just learned about the fieldset tag- here is the url I used as an example
>>http://www.w3schools.com/tags/tryit....yhtml_fieldset
>>If I put it about a form element it just puts a box around that element.
>>but If I put it around the form it breaks for the legend at the top,
>>which I like.

>
>
> As Michael said, it should be used to group form elements - so basically
> replace the paragraph in your example with a fieldset. One fieldset
> around all the input elements.
>

Ok Done. Thanks for the tip
 
Reply With Quote
 
rf
Guest
Posts: n/a
 
      12-17-2004
Red wrote:

> end tag for "FORM" which is not finished
>
> The error occurs on the first '/' in "https://" of this line:
> <FORM NAME=login ACTION=https://thesite.com/login.php METHOD=post>


That action URI should be in quotes:
<FORM NAME=login ACTION="https://thesite.com/login.php" METHOD=post>

The validator is parsing along and finds action=https: and then finds a /. A
/ signifies the beginning of a closing tag, but the opening tag has not been
completed yet, with a >.

Odd sort of error but that is your problem

--
Cheers
Richard.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid character in base-64 string and invalid postback or callba kevin ASP .Net 0 01-16-2008 09:39 PM
How do fix: "Wrong number of arguments" / "invalid propert assignment"/ "Invalid argument" Java Guy Javascript 1 10-15-2006 08:41 PM
How do fix: "Wrong number of arguments" / "invalid propert assignment"/ "Invalid argument" Java Guy Java 1 10-15-2006 08:31 PM
Invalid URI: There is an invalid sequence in the string. Error!! Patrick.O.Ige ASP .Net 1 07-02-2006 11:21 AM
invalid@invalid.org Hank Sniadoch Computer Information 1 08-20-2004 11:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57