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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old February 27th, 2004, 08:43 PM
ez_way ez_way is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: California USA
Posts: 3 ez_way User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post from C++ to php

In my C++ app I have the following line(s)

m_strInfo.Format("&client=%s &num=%d &uname= %s &userial=%s &ucompany=%s",strEmailClient,nAccounts,strUserName,strUserSeria l,strUserCompany);
str.Format("<A href="http://www.digitaltcp.com//registration//rindex.php?%s",m_strInfo">http://www.digitaltcp.com//registration//rindex.php?%s",m_strInfo); // have tried with comma seperator and without

/********************************************/
In my php script I have the following line(s)
$cli = $_POST['client'];

$number = $_POST['num'];

$username = $_POST['uname'];

$userserial = $_POST['userial'];

$usercompany = $_POST['ucompany'];



No data posted
Thanks
ez_way



Reply With Quote
  #2  
Old March 1st, 2004, 07:04 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
That's because sending stuff in the query string uses GET. You'll either need to change your superglobal reference to $_GET or look up how to submit a post from a C++ app.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old March 5th, 2004, 12:08 AM
ez_way ez_way is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: California USA
Posts: 3 ez_way User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you!

I am new to php so could you give me an example?
I am sorry to come to the table with such little knowledge, but I am trying !

Reply With Quote
  #4  
Old March 5th, 2004, 12:10 AM
ez_way ez_way is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: California USA
Posts: 3 ez_way User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by dhouston
That's because sending stuff in the query string uses GET. You'll either need to change your superglobal reference to $_GET or look up how to submit a post from a C++ app.

Reply With Quote
  #5  
Old March 5th, 2004, 08:01 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
PHP Code:
 $cli $_GET['client'];

$number $_GET['num'];

$username $_GET['uname'];

$userserial $_GET['userial'];

$usercompany $_GET['ucompany']; 

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Post from C++ to php


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 | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway