Is there a way to make a textbox like this <input type="text" name="#"><input type="submit" value="translate"> and beable to type in Hi and when you push translate have it say Hola
Yes, its called google translate But seriously, if you want to do it yourself, it takes a ton of processing power and database space I think, because the script would basically look up the translation in a digitized dictionary.
If you only wanted to simply replace a few words with their Spanish equivalent then yeah this is really easy to do with javascript - just create an array with the words to swap and then just use replace(). Doing a proper language translation though is HARD. It is not a trivial exercise by any stretch of the imagination!