HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 25th, 2012, 04:51 PM
kutacz kutacz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Location: Warsaw
Posts: 46 kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 15 h 8 m 14 sec
Reputation Power: 27
Rough-and-ready way to send forms

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
	"http://www.w3.org/TR/html4/loose.dtd">
<head>
    <title>Complete an form</title>


    <style type="text/css">
        #Text1 {
            width: 144px;
        }
    </style>

</head>
<body>



<form action="getting_command_outside.exe" method="get">  
<input id="Text1" type="text" />
</form>


</body>
</html>



getting_command_outside.exe source code (.cpp)

Code:

#include "stdafx.h"
#include <fstream>

using namespace std;

int main(int argc, char *args[])
{
	ofstream ofile;

	ofile.open("database.txt");

	for(int i=0; i<argc; i++)
	ofile<<args[i];

	ofile.close();


    return 0;
}


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.

Reply With Quote
  #2  
Old January 26th, 2012, 11:10 AM
Tukaro's Avatar
Tukaro Tukaro is offline
Standing 3 feet to the left.
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2006
Location: USA
Posts: 1,435 Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level)Tukaro User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 3 h 47 m 12 sec
Reputation Power: 183
Send a message via AIM to Tukaro Send a message via MSN to Tukaro
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.

Reply With Quote
  #3  
Old January 26th, 2012, 03:59 PM
kutacz kutacz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2011
Location: Warsaw
Posts: 46 kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level)kutacz User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 15 h 8 m 14 sec
Reputation Power: 27
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

Reply With Quote
  #4  
Old January 26th, 2012, 04:33 PM
Catacaustic's Avatar
Catacaustic Catacaustic is offline
Code Monkey V. 0.9
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2005
Location: A Land Down Under
Posts: 1,660 Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level)Catacaustic User rank is General 10th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 2 m 8 sec
Reputation Power: 1642
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Rough-and-ready way to send forms


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap