Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 01-27-2005, 10:02 AM   #1 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 225
falsepride is on a distinguished road
form processing?

can c++ process data from html forms through get and post? cuz my computer isnt a server so i cant use php or any side server languages, and i need a way to process forms, and write/read files on my computer
falsepride is offline   Reply With Quote
Old 01-27-2005, 10:05 AM   #2 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
I cant really answer your question in general - I dont know, but you could always download the windows version of apache and use C++ to write CGI programs to parse that form data.
fp_unit is offline   Reply With Quote
Old 01-27-2005, 10:07 AM   #3 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 225
falsepride is on a distinguished road
thats too much work, i lost time in the past month to spend learning c++ and work on my unfinished site of 5 years. can someone answer my question please?
falsepride is offline   Reply With Quote
Old 01-27-2005, 10:10 AM   #4 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
Quote:
Originally Posted by falsepride
thats too much work...
Way less work than what you're thinking about doing (it takes 15 minutes to learn enough apache to set this up)

Quote:
Originally Posted by falsepride
can someone answer my question please?
You posted 5 minutes ago
fp_unit is offline   Reply With Quote
Old 01-27-2005, 05:07 PM   #5 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
You need a way to process forms on other servers, or use C++ to accept/process CGI-based get/posts requests? The answer to either is yes, but something like python or perl might be quicker to work with.

-r
idx is offline   Reply With Quote
Old 01-27-2005, 07:01 PM   #6 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 225
falsepride is on a distinguished road
well the point of my doing it in c++ although harder, is to practice c++.
falsepride is offline   Reply With Quote
Old 01-27-2005, 07:14 PM   #7 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
OK.

You *could* install Apache though, write C++ programs in your cgi-bin/ folder and postback your GET and POST data to the current program or another one in cgi-bin/ to examine that content. If your dead-set on trying to access it through some sort of API then I can't help you out.

Good luck!
fp_unit is offline   Reply With Quote
Old 01-27-2005, 07:23 PM   #8 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 225
falsepride is on a distinguished road
i didnt mean to post this in api yet again, i clicked the wrong link, i seriously think im going blind. i wish i could move this thread to standard. can it be done in standard c++?
falsepride is offline   Reply With Quote
Old 01-27-2005, 07:36 PM   #9 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
HTTP POST and GET data isn't part of Standard C++.
fp_unit is offline   Reply With Quote
Old 01-27-2005, 07:38 PM   #10 (permalink)
falsepride
Regular Contributor
 
Join Date: Oct 2004
Posts: 225
falsepride is on a distinguished road
i knew there wasnt, but lets get creative. theres gotta be a way to pass variables from javascript or a form to a c++ program.
falsepride is offline   Reply With Quote
Old 01-27-2005, 07:42 PM   #11 (permalink)
fp_unit
mike
 
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
fp_unit is on a distinguished road
http://localhost/cgi-bin/postDataParser.cpp

Thats all I know of.
fp_unit is offline   Reply With Quote
Old 01-28-2005, 01:31 PM   #12 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Hm.. can't get to that localhost site.

No, I doubt CGI functions are build into c/c++, but there has to be some kind of library that helps.

Google time

-r
idx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML form preview then INSERT using PHP & MySQL SteveSoler PHP 16 09-22-2008 12:59 AM
EMERGENCY: Dynamic form processing DavH27 PHP 8 10-27-2004 08:52 PM
javascript riddle: why won't my form submit from this text link? sde HTML, XML, Javascript, AJAX 6 09-29-2004 06:56 AM
populate form field virtualGeorge PHP 4 08-23-2004 09:05 AM
Passing form data to PHP with Javascript bdl PHP 5 07-03-2002 11:18 AM


All times are GMT -8. The time now is 06:31 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting