jchamel 0 Newbie Poster

This is a very simplistic solution to your problem.

<%
Dim intHrlyRate, intWeeklyRate, intMonthlyRate, intAnnualRate
intHrlyRate = 10 '// $ rate per hour
intWeeklyRate = intHrlyRate * 40 '// hourly rate multiplied by hours per week
intMonthlyRate = 4.33 * intWeeklyRate '// 52 weeks divided by 12 months multiplied by the weekly rate
intAnnunalRAte = 52 * intWeeklyRate '// 52 weeks multiplied by the weekly rate
Response.write "Hourly Rate = $" & intHrlyRate & "<br>"
Response.write "Weekly Rate = $" & intWeeklyRate & "<br>"
Response.write "Monthly Rate = $" & intMonthlyRate & "<br>"
Response.write "Annual Rate = $" & intAnnunalRate & "<br>"
%>

I found out that my assignment really needed this for the monthrate to come out to 1733. I was told this was needed to do that
intMonthlyRate = CInt(intAnnualRate / 12) '// Annual Rate divided by 12 months the cInt means to divide the annual rate by 12. I missed that other than that he said this was fine.
Thought I would add this for FYI
Thanks

jchamel 0 Newbie Poster

Or you can make it a bit more dynamic by allowing the user to select the month and then display the days in that month, as below:

Thanks so much you have been so much help to me. YOUR GREAT!

jchamel 0 Newbie Poster

Here is my code. As always I don't understand what beginning asp 3.0 . The book says to do this code, but doesn't explain what vartodaymonth means or varTodayDate = day(now()) means. I am suppose to make two files one html file and in it have the months of the year and only one month should be passed on to the asp page. Not sure how to do that? In that page all of the days of the month I choose should be displayed Like this
The days of ____ are 1
The days of ____ are 2 etc.
In that blank should be the month I chose to use.
Here is all I can come up with using the book beginning active server pages 3.0 p 195 if you know this book.
<html>
<head>
<title>Example Do While</title>
</head>
<body>
<H1>This is the days of January</H1>
<%
varRowCount = 1
varTodayDate = day(now())
varTodayMonth = MonthName(month(date())
Response.Write "<h2>Report for " & varTodayMonth & "</h2>"
Do While varMonthCount <32 or <= 31
Response.Write "The days of " & varTodayMonth & " " & varRowCount
Response.Write ": are varTodayDate<br>"
varRowCount = varRowCount + 1
Loop
%>

</body>
</html>

The book says this will display if requested on the ninth of september.
How do I get it to display the month of January and say
The days …

jchamel 0 Newbie Poster

I can not figure out what to do. I need one html file to read an asp file for these 4 variables (1) intHrlyRate, (2) intWeeklyRate, (3) intMonthlyRate, and (4) intAnnunalRate. I am suppose to use arithmetic functions to calculate the
intWeeklyRate (based on 40 hrs per week and assign value of 10 to intHrlyRate), the intMontlyRate, and the intAnnualRate variables. Using response.write all variables to the screen
My result should be Hourly Rate = 10
Weekly Rate = 400
Monthly Rate = 1733
Annual Rate = 20800
all I can figure out so far is this( which I bet is wrong) NOT Good with Math

I think this is what i am suppose to show for my asp file. I not quite sure how to even start the html file Or do I have this backwards.
<html>
<head>
</head>
<title>arithmetic calculations</title>
<body>
<%
Dim intHrlyRate, intWeeklyRate, intMonthlyRate, intAnnualRate
intHrlyRate = 10
intWeeklyRate = 40
intMonthlyRate = intHrlyRate * intWeeklyRAte
intAnnunalRAte = intHrlyRate * intWeeklyRate * intMonthlyRate
Response.write intHrlyRate
Response.write intWeeklyRate
Response.write intMonthlyRate
Response.write intAnnunalRate


</html>
</body>
Please for the love of God someone take pitty on a poor helpless girl trying to learn asp.

jchamel 0 Newbie Poster

The first part of my asp file is working, but I have to concatenate the variables and add text to read this. My name is Joe Blow. I live at 123 easy street in Pine Bluff, AR 71601. My phone number is (870) 123-4567 and my Email address is jblow@seark.edu. I do not know where to put what. I think I have part of it figured out and I am using the book Beginning Active Server Pages 3.0. Can someone take a look at this soon. It is due tonight by midnight. I think I almost have it but do not know how to make a space. The book says to do this & " " . But if you load it on the server it doesn't have the space. I need to add the address, phone and email to this also to concatenate the rest of the variables.
Thanks for your help.
Ok here is my file.

<%Option Explicit%>


<html>
<head>
<title> Five variables</title>
</head>
<body bgcolor="ffffcc">

<%
Dim strfullname, straddress, strcitystatezip, strphone,

strEmail
strfullname = ("Joe Blow")
straddress = ("123 Easy Street")
strcitystatezip = ("Pine Bluff, Arkansas 71601")
strphone = ("(870) 123-4567")
strphone = ("jblow@seark.edu")

Response.write "<br>"
Response.write strfullname
Response.write "<br>"
Response.write straddress
Response.write "<br>"
Response.write strcitystatezip
Response.write "<br>"
Response.write strphone
Response.write "<br>"
Response.write strEmail
Response.write "<br>"

jchamel 0 Newbie Poster

Thanks so much. I looked at that code so much, I never noticed that I didn't tell it what to display. My teacher told me another way to do this was response.write ("full name") etc, under the request.form. I was requesting but not telling it what to do huh. This is only my second asp file. Thanks so much. What book did you learn from? We are using Begining active server pages by several authors and the company wrox. :D

jchamel 0 Newbie Poster

:?:
I am new to this site but, I need help figuring out this simple form that is suppose to send the data to our school's server. The first one is my html form and the second is the asp file. I don't know how to get the simple form in my html file to display whatever is put in the text boxes. Thanks for any help.
I used response.write for the first asp page i did. But this is different with a form. Our book is beginning asp 3.0 by wrox publisher.
ok this is my html file
<html>
<head>
<title>asp form</title>
</head>
<body>
<center><h1><font color="3444FF">Please enter your contact information below</h1></center></font><br>

<form action="3b-formdata.asp" method=post>
<center><table border="5" bgcolor="99CCFF"></center>
<tr>
<td align="left"<p> Please enter your full name:</p>
<input type="text" name="fullname" size="25" maxlength = "50"></td>
</tr>
<br>

<tr>
<td align="left" <p> Please enter address:</p>
<input type="text" name="address" size="25" maxlength = "50"></td>
</tr>
<br>
<td align="left" <p> Please enter your city,state and zip.</p><input type="text" name="citystatezip" size="25" maxlength="75"></td><br>
</tr>
<tr>
<td align-"left" <p> Please enter your phone number with area code.</p> <input type="text" name="phone" size="25" maxlength="15"></td></tr>
<br>
<tr>
<td align="center"
<p><input type="submit" value="Submit contact information here"><br>

</table>
</form>
</body>
This is the asp file to go with that.
<html>
<head>
<title> asp page</title>
</head>
<body>