Math and Vector3 Question

I Have a little math and Vector3 question. I have included a picture.i know both Vector3 and player position. I need to find the green point. Y of both Vector3 and player are same

Get the Math3D script from the Unity Wiki. The script has both a ProjectPointOnLine() and ProjectPointOnLineSegment() functions. The first should do the job as outlined here.