|
 |
|
 |
01-27-2005, 10:02 AM
|
#1 (permalink)
|
|
Regular Contributor
Join Date: Oct 2004
Posts: 225
|
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
|
|
|
01-27-2005, 10:05 AM
|
#2 (permalink)
|
|
mike
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
|
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.
|
|
|
01-27-2005, 10:07 AM
|
#3 (permalink)
|
|
Regular Contributor
Join Date: Oct 2004
Posts: 225
|
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?
|
|
|
01-27-2005, 10:10 AM
|
#4 (permalink)
|
|
mike
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
|
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
|
|
|
01-27-2005, 05:07 PM
|
#5 (permalink)
|
|
Senior Grasshopper
Join Date: Jun 2003
Location: FL
Posts: 317
|
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
|
|
|
01-27-2005, 07:01 PM
|
#6 (permalink)
|
|
Regular Contributor
Join Date: Oct 2004
Posts: 225
|
well the point of my doing it in c++ although harder, is to practice c++.
|
|
|
01-27-2005, 07:14 PM
|
#7 (permalink)
|
|
mike
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
|
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!
|
|
|
01-27-2005, 07:23 PM
|
#8 (permalink)
|
|
Regular Contributor
Join Date: Oct 2004
Posts: 225
|
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++?
|
|
|
01-27-2005, 07:36 PM
|
#9 (permalink)
|
|
mike
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
|
HTTP POST and GET data isn't part of Standard C++.
|
|
|
01-27-2005, 07:38 PM
|
#10 (permalink)
|
|
Regular Contributor
Join Date: Oct 2004
Posts: 225
|
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.
|
|
|
01-27-2005, 07:42 PM
|
#11 (permalink)
|
|
mike
Join Date: Jan 2005
Location: Ottawa, ON
Posts: 79
|
|
|
|
01-28-2005, 01:31 PM
|
#12 (permalink)
|
|
Senior Grasshopper
Join Date: Jun 2003
Location: FL
Posts: 317
|
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
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 06:31 AM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|