I’m trying to make a terminal emulator… very much in the style of this:
http://try.github.io/levels/1/challenges/1
I’m thinking that the main interaction with it will be coded in JS… but then I want to cache whatever was typed and actually process that server-side with either PHP or Python.
The reason for this is that the terminal will be used as a contact form or sorts. Therefore, I want to prevent any sort of malicious input server-side. Of course, I’ll put safeguards in the JS but I just don’t think that’s sufficient.
What do you guys think? Am I wrong on how I’m going about this?