| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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 ! |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
||||
|
||||
|
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Post from C++ to php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|