how can i use a javascript page(form fillup option)
to take data into a c++ program?
like.. i wanna maintain a database on c++... i just wanted to know how can i get the input through a nice user friendly (javascript/html)page.. just like filling a form!
i hav'nt done a lot of javascript... but i know c++ very well n i'll just get the tutorials for javascript. So just tell me is it possible to save the input from a FORM on a different file (text/dat format) from where i cud take the information using file handling(c++)??
I wanna know somthing regarding inputs in a c++ program. (c details)?
I guess best option is put your program in the CGI-BIN dir in Apache and post the information to this CGI program (which you can write en C++). The drawback is you need to start apache to have this working, even if you have both programs on same machine.
Another option is write a plugin, but this is browser dependant. You'll need to write an activex control if using IExplorer or a XPCom object if using Mozilla Firefox. With both you can directly get information from the DOM of your web page (though the API is quite different between MS and Mozilla option).
Reply:this is not what i was actually looking for!
anyway thanks for writing! Report It
Reply:Its much easier to use a server based language like php. It is very hard to connect directly to C++. You would have to create a full system that parses the header files and can get post and get data from the javascript or use AJAX techniques but I STRONGYLY recommend you just get a book on php and mysql which are actually easier and faster then C++ in a web environment.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment