/    Sign up×
Community /Pin to ProfileBookmark

Forms: form validation error: "NAME"

I was not sure where to place this topic, so I placed it here in “HTML”
I finally managed to get a working math program in Javascripting and I’m really excited about it, however, when I went to validate it, I was returned with a number of errors. I fixed most of them, but one has me stumped:

[QUOTE]

Line 88, column 11: there is no attribute “NAME”
<form NAME=”wall_calculator” method=”post” ACTION=”wallcalc.html”>

[/QUOTE]

[URL=http://www.epourania.com/wallcalc/wallcalc.html]http://www.epourania.com/wallcalc/wallcalc.html[/URL]

Here is the site and I used the 3WC validator.
I have a difficult time finding the specs for forms on the 3WC site, I found it once, but I can’t seem to find it now.
I don’t understand what it means “…no attribute “NAME”…” well I have the NAME right there.
It also went on to explain something about CSS. I don’t know what that is, or rather I know it’s Cascading Style Sheets, but I haven’t studied that one yet.
“<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>”
is my first line. Do I need to change this somehow to CSS?

to post a comment

2 Comments(s)

Copy linkTweet thisAlerts:
@akadisAug 25.2004 — first note: WRONG FORUM!!! does this LOOK like a html forum???

next note: to get rid of your errors:

88: <form NAME="wall_calculator" method="post" ACTION="wallcalc.html">[/QUOTE]
Forms themselves don't need names, try getting rid of NAME="wall_calculator"

94: <select NAME="on_center" onChange="CalculateTotals()" /><option value="16" selected> 16 Inches On Center </option><option value="24"> 24 Inches On Center </option></select>[/QUOTE]
get rid of the /> and replace it with > because /> is only used when there is no ending such as <br /> but the select element ends with </select> and therefore there is no need for the />

last note: don't get rid of your doctype! keep that, it's good! :p granted you should probably try xhtml (think html but cleaner code is nesicary to validate) css only provides style, thus there is no reason to get rid of your doctype, which basicly only tells the browser/validator what you are doing

hope that helps ?
Copy linkTweet thisAlerts:
@anothenauthorAug 25.2004 — Gahh, your right, I must have accidently clicked on Graphics instead of HTML, is there a way to change? or should I just leave it here?


**** moved to HTML forum ****

[URL=http://www.webdeveloper.com/forum/showthread.php?s=&threadid=42741]http://www.webdeveloper.com/forum/showthread.php?s=&threadid=42741[/URL]
×

Success!

Help @anothen spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...