Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Ayumi, Quad, PeWi), 488 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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