What would be the cleanest way to take a string from a submit form like:
var1=Hello&var2=Internet&var3=World
And parse it so I can store each var into a variable of its on in c++..
Printable View
What would be the cleanest way to take a string from a submit form like:
var1=Hello&var2=Internet&var3=World
And parse it so I can store each var into a variable of its on in c++..
i'd use strtok
or perl/php
Do a quick search under my name and you'll find a thread with some attached files to do it.
There is a very strict rule to it tho... I cannot do it in php or perl. Its gotta be done in c++ cause if you use perl or php.. then I'd have to load the interpreter everytime the script is called thus killing off the reason of doing it in c++.
parksie... ok
That's a server configuration issue though.
If you use Apache with mod_php and mod_perl then the interpreter is actually loaded into the server itself, resulting in zero startup time, and the possibility of caching the compiled bytecodes.