January 25th, 2012, 04:51 PM
Rough-and-ready way to send forms
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>Complete an form</title>
<form action="getting_command_outside.exe" method="get">
<input id="Text1" type="text" />
getting_command_outside.exe source code (.cpp)
Is it possible to put it into effect in such way? (if yes... I know that 'action=' has an invalid parameter )Well-welcomed other simple ways of sending forms.
using namespace std;
int main(int argc, char *args)
for(int i=0; i<argc; i++)
January 26th, 2012, 11:10 AM
What, exactly, are you attempting to do?
I'd rather teach you to fish than give you a fish. I reserve the right to also slap you with the fish.
January 26th, 2012, 03:59 PM
I would like to convey form's input into a .txt file using C++ program . I don't have an knowlegde about PHP, asp and servers . That is the reason why I used such unspophisticated algorithm .
But now it's starts downloading my .exe file
January 26th, 2012, 04:33 PM
If you're being prompted to download the program, then the file permissions on the server are not allowing the program to be executed. First thing to do is check the file permissions for your .exe program and double-check that it can be executed in that directory by unknown users.
If that doesn't work, then I'd almost suggest trying something else. If your server can use PHP then I'd point you to PHPMailer. It's probably the best email script out there now, and you don't need to know any PHP to use it. Just read the configuration and setup guides for it and it should be easy enough.