# Golf player Handicap Calculator in ASP VB

Hi I am looking for a code to calculate Handicap from a given GOLF player  in ASP (Visual Basic). I could start from scratch , but the thing is I am out of time to finish this project.

If someone has done something similar and has an existing code or can share a link to one please post it here.

I am looking for something similar to
http://www.netgolfleague.com/HandicapCalculator.aspx

###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:

``````pass in slope, rating, and score
<%
dim a, b, c, d
a = request("score") - round(request("rating"), 1)
b = round(a, 2) * 113

c = b / request("slope")
d = c * .96
d = round(d, 1)
%>
Handicap Index: <%=d%>

<%
``````
0
Commented:
pass in slope, rating, and score
<%
dim a, b, c, d
a = request("score") - round(request("rating"), 1)
b = round(a, 2) * 113
c = b / request("slope")
d = c * .96
d = round(d, 1)
%>
Handicap Index: <%=d%>

<%
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
Thansk, I appreciate
0
Author Commented:
One more quesiotn. What do you mean by pass in?
I understand the formula but not the actual fields i need on database.
0
Commented:
three text boxes from a form.

<form>
<table width="200px"   cellpadding=0 cellspacing=2 align=center class=greentext>

<tr>
<td>
Course Rating:
</td>
<td>
<input name="rating" id="rating" style="WIDTH:40px" type="text" value="<%=request("rating")%>"></input>
</td>
</tr>
<tr>
<td>
Course Slope:
</td>
<td>
<input name="slope" id="slope" style="WIDTH:40px" type="text" value="<%=request("slope")%>"></input>
</td>
</tr>
<tr>
<td>
</td>
<td>
<input name="score" id="score" style="WIDTH:40px" type="text" value="<%=request("score")%>"></input>
</td>
</tr>

</table>
<input type="submit" value="Submit">
</form>
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.