Html submit field as input to c++ cin?

CAPS

New member
Say you have an html field, and a submit button.

Is it possible to make it so that clicking submit send the info in the user field to a c++ program as an input?

like in your form you have <input type="submit" value="Submit" />

but you also have <form name="input" action="html_form_action.asp" method="get">

Now the method="get", what else do I need to do to have it be cin for something like,

#include "stdafx.h"
#include <iostream>
using namespace std;
#include "resource.h"
int a = 0;
int b = 0;
int c = 0;
int main()
{
cin >> a;
cin >>b;
c = a +b;
cout <<c;
}
The reason I wish to use C++ is because I have a lot more experience in C++, and my program is for something far more complicated than adding two numbers
 
Back
Top