<%option explicit%> <% '***define page vars********************************************************************************** dim rsLoginPupil, sqlLoginPupil, rsLoginCoach, sqlLoginCoach '***process login form******************************************************************************** if request.form("validateLogin") <> 0 then '***attempt to login to pupil account first******************************************************* set rsLoginPupil = server.CreateObject("adodb.recordset") sqlLoginPupil = "SELECT * FROM pupils WHERE username = '" & convertstring(trim(request.form("username"))) & "' and password = '" & convertstring(trim(request.form("password"))) & "'" rsLoginPupil.open sqlLoginPupil, dbConnect, 3, 3 if rsLoginPupil.recordcount <= 0 then '***account not found so attempt coach login************************************************ set rsLoginCoach = server.CreateObject("adodb.recordset") sqlLoginCoach = "SELECT * FROM coaches WHERE username = '" & convertstring(trim(request.form("username"))) & "' and password = '" & convertstring(trim(request.form("password"))) & "'" rsLoginCoach.open sqlLoginCoach, dbConnect, 3, 3 if rsLoginCoach.recordcount <= 0 then else '***log coach in and redirect to coach account home page*********************************************** session("coachLogin") = TRUE session("coachID") = rsLoginCoach("id") if rsLoginCoach("coachLevel") = 1 then response.redirect "hcAccount1.asp?id=" & rsLoginCoach("id") response.end else response.redirect "cAccount1.asp?id=" & rsLoginCoach("id") response.end end if end if '*********************************************************************************************** else '***log pupil in and redirect to pupil account home page**************************************** session("pupilLogin") = TRUE session("pupilID") = rsLoginPupil("id") response.redirect "pAccount1.asp?id=" & rsLoginPupil("id") response.end '*********************************************************************************************** end if end if %> Welcome to N1GOLF Holidays - PORTUGAL, SPAIN, CYPRUS, TURKEY, FRANCE, USA, U.K, TUITION BREAKS

GROUP BOOKINGS

 

 

 

 

 

PREMIER GOLF HOLIDAYS AT COMPETITIVE PRICES!

 

If you are looking to take a golfing holiday abroad with your partner, family, friend or group of friends then N1GOLF is the Golf Holiday Specialist for you!

We offer a truly personal service with a professional, friendly and knowledgeable team who can put together a golfing holiday to suit all your requirements. Including Flights, Accommodation, Car Hire and most important of all pre – booked tee times.

With every destination you have the reassurance of an n1Golf Guide meeting and greeting you from the minute you arrive at the airport.

Through our teams experience, including a P.G.A Golf Professional, N1GOLF will ensure that your holiday is an experience to remember – we understand that to achieve this the whole holiday must run smoothly and be enjoyable.

For a colour brochure call

0845 652 0068

 
 
 
Business hours:
Monday to Friday 09.00 to 19.00
Saturday 09.00 to 15.00

ABOUT US / TUITION BREAKS / DESTINATIONS / VIP / SPECIALS / GROUPS / NEWS / CORPORATE / CONTACT

 

We have a team of PGA Golf Professionals who can join you on your holiday.