C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 15th, 2004, 01:02 AM
sewage sewage is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 50 sewage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 35 sec
Reputation Power: 5
Cool c++ communicating with html

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.

Reply With Quote
  #2  
Old June 15th, 2004, 03:44 AM
kode_monkey kode_monkey is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 367 kode_monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 21 sec
Reputation Power: 6
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-

Reply With Quote
  #3  
Old June 15th, 2004, 10:38 AM
sewage sewage is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 50 sewage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 35 sec
Reputation Power: 5
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

Reply With Quote
  #4  
Old June 15th, 2004, 11:43 AM
kode_monkey kode_monkey is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 367 kode_monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 21 sec
Reputation Power: 6
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-

Reply With Quote
  #5  
Old June 15th, 2004, 01:27 PM
sewage sewage is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 50 sewage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 35 sec
Reputation Power: 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

Reply With Quote
  #6  
Old June 15th, 2004, 03:06 PM
kode_monkey kode_monkey is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 367 kode_monkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 21 sec
Reputation Power: 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-

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > c++ communicating with html


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

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT