| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to use the <form action"" method="post"> and <input type="text"> tags to
access a c++ program, but I am unsure as to how to get a hold of the information the user provides through the website tag. Do I need to use a special header file or something of that nature? Once someone enters data and clicks submit, where in the heck does it go if anywhere, what do I do get the info the user submited. |
|
#2
|
|||
|
|||
|
What exactly are you trying to achieve. It is possible to pass these items to a c/c++ program but for just about anything like this you are better off using some kind of server side scripting language (asp, php, jsp etc) instead.
If you could provide some more details we might be able to suggest an easier alternative, -KM- |
|
#3
|
|||
|
|||
|
well...I am trying to create a password program for a site, a person would enter their username and password
and the program would reference the info with a .txt file I will have already created I know I could probably find one already packaged in an .exe at source forge, but I would like to do it myself to better my skills the problem with using somthing like php, asp, ect. is that I have no clue how to use them I have an intermediate knowlegde of c++ and and a semi-intermediate knowlegde of html, thus I wanted to stick to these two languages |
|
#4
|
|||
|
|||
|
The problem with using c/c++ for something like this is you need to access the executable via something like cgi. (At least I think this is the case, if I'm wrong please someone speak up.) Php can almost be thought of as weak typed C since most functions that exist in C have been implemented in a very similar form in php so transferring your skills from c/c++ to php shouldn't prove too difficult. As well as this far more hosting companies support php rather than allowing arbitrary executables on their servers.
-KM- |
|
#5
|
|||
|
|||
|
1. cgi sounds like the right thing to use, although I dont know how to go about implementing it,
any hints or tips on how to use cgi or where a good place is to learn about using cgi? 2. I suppose I will have to look into php, any advice on where to start? 3. I will have complete control over the server, therefore, I need not worry about the host allowing me to have a program on the server |
|
#6
|
|||
|
|||
|
1. Have no clue on the cgi front, but thats not to say its necessarily a bad idea.
2. Setting up apache with php and mysql (if you want a database) is pretty simple under both windows and linux. As for getting started with it check out the devarticles php tutorials, http://codewalkers.com or a google search should turn up one of the many php beginners guides. 3. In which case depending on how difficult getting c programs to work with cgi is it might be worth just going down that route. -KM- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > c++ communicating with html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|