/    Sign up×
Community /Pin to ProfileBookmark

Help needed PLEASE

i am a newbie in JAVASCRIPT and HTML with no idea. I have a project i am working on and am expected to finish it in 4 weeks time. I really really do need your help please? Here is my specification,

The aim of the project is to develop a web-based program to calculate energy savings, chemical savings and payback periods for swimming pool covers. The user needs to be prompted for information about the pool. Standard values for quantities such as energy costs will be provided if the customer does not know.

A typical user session would be like this:-

Questions
Select a currency (Lists of currencies for 4 countries; drop-down menu)
Select a product type?(list of 3 types of products from drop-down menu)
Select (radio button) Out-door pool or Indoor Pool.
What is pool size? Length and breath (text fields that only takes numbers)
Cost of electricity for heating pool? (text fields that only takes numbers)
Cost of Chemical usage for pool? (text fields that only takes numbers)
Water costs? (If applicable)

Calculations

Calculate cost of material required.
(Noting different products have different costs by thickness and UV stabilizer quantity.)
Divide cost of electricity by 75%.
Divide chemical costs by 50%.
Divide water costs by 98%.

From this information the program will display the payback period.

here is something i have done but i don’t know if i’m doing the right thing:

[code=html]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<HTML>
<HEAD>
<TITLE>Energy Saver Calculator</TITLE>
</HEAD>
<BODY bgcolor=”white”>
<body background = “”>

<h1><a>Energy Saver Calculator</a></h1>

<FORM method=post action=”cgi-bin/script.pl”>
Pool Information
<TABLE BORDER= “1”>
<TR>
<TR>
<TD>Select Currency</TD>
<TD>
<SELECT currency=”Currency”>
<OPTION VALUE=”Select Currency”></OPTION>
<OPTION VALUE=”British Pound”>British Pound</OPTION>
<OPTION VALUE=”European Euro”>European Euro</OPTION>
<OPTION VALUE=”New Zealand & Australian Dollar”>New Zealand & Australian Dollar<OPTION>
<OPTION VALUE=”South African Rand”>South African Rand</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD>Select Product</TD>
<TD>
<SELECT products=”types”>
<OPTION VALUE=”Select a Product”></OPTION>
<OPTION VALUE=”Product1″>CoolGuard</OPTION>
<OPTION VALUE=”Product2″>EnergyGuard</OPTION>
<OPTION VALUE=”Product3″>Sol+Guard</OPTION>
</SELECT>
</TD>
</TR>

<TR>
<TD>Pool Location?</TD>
<TD>
Out-door Pool: <INPUT type=radio name=”outDoor” value=”O”>

<br>In-door Pool: <INPUT type=radio name=”inDoor” value=”I”>
</TD>
</TR>
<TD>Pool Length</TD>
<TD>
<INPUT type=number name= “length” size =”28″>
</TD>
</TR>

<TR>
<TD>Pool Breath</TD>
<TD>
<INPUT type=number name=”breath” size =”28″>
</TD>
</TR>

<TR>
<TD>Comments</TD>
<TD>
<TEXTAREA rows=”3″ name=”comments”>
Type your comments here</TEXTAREA>
</TD>
</TR>

<TR>
<TD COLSPAN=2>
<INPUT type=”submit” value=”Send”>
</TD>
</TR>
</TABLE>
</FORM>
<SCRIPT language=”JavaScript”>
<!–

document.write(“”)
//–>
</SCRIPT>

</BODY>
</HTML>

[/code]

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@KorJul 10.2009 — Please, don't cross post! You have already post the same problem at:

http://www.webdeveloper.com/forum/showthread.php?t=212826

After all, your problem is rather a problem of javascript, not of HTML (presuming the HTML part is OK...)
×

Success!

Help @ca87 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...