Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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