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 

RickyGtzAsked:
Who is Participating?
 
golfDoctorConnect With a Mentor 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
 
golfDoctorCommented:

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%>
																												
																												<%

Open in new window

0
 
RickyGtzAuthor Commented:
Thansk, I appreciate
0
 
RickyGtzAuthor 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
 
golfDoctorCommented:
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>
            Your Score:           
      </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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.