Hello all, I am a beginner at scripting but need this done for a personal project.

My aim is to make a website, with two input boxes, users will then enter two co-ordinates: "571837.62N" AND "0021601.95W"

Then the website will convert the two inputed coordinates to the following output format "N057.18.37.620 W002.16.01.950".

Can anyone provide me with a code for this?

Many thanks in advanced.