Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 747 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
(s) http_sendpost and using data? #466189
05/30/17 04:27
05/30/17 04:27
Joined: Feb 2013
Posts: 122
Maysville, Ga
Evo Offline OP
Member
Evo  Offline OP
Member

Joined: Feb 2013
Posts: 122
Maysville, Ga
I've been trying to get http_sendpost to send a string with the data setting and have php store the data in a var for use in the online code.

Example :
http_sendpost("http://websiteName/pageName.php","mydata=250");

Regardless of what code I use in PHP, the data always comes up empty. Things like : $_GET["mydata"] are not detecting the data at the end of the url.

What am I doing wrong?

* Basically I need to send a single "value/string" and have that data save into a PHP var when calling the php script. Is this possible with 3DGS? Does anyone have any information on why the data setting keeps coming up empty?

Re: http_sendpost and using data? [Re: Evo] #466191
05/30/17 09:25
05/30/17 09:25
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Did you try $_POST['mydata']? That's the usual way to do it.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: http_sendpost and using data? [Re: alibaba] #466195
05/30/17 12:48
05/30/17 12:48
Joined: Feb 2013
Posts: 122
Maysville, Ga
Evo Offline OP
Member
Evo  Offline OP
Member

Joined: Feb 2013
Posts: 122
Maysville, Ga
Thanks Alibaba. I got confused last night and I wasn't thinking correctly. I forgot it was using the query string in a HTTP message body and not url data laugh

Thanks for your reply.

Re: http_sendpost and using data? [Re: Evo] #466196
05/30/17 12:54
05/30/17 12:54
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Glad I could help


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1