I need to send strings to a PHP script in html5. I get the url and post the data, but I can't retrieve the strings.
What do I put in the PHP to retrieve it?
Attached below is how I coded it. Thank you!
Screenshot (11694).jpg
I need to send strings to a PHP script in html5. I get the url and post the data, but I can't retrieve the strings.
What do I put in the PHP to retrieve it?
Attached below is how I coded it. Thank you!
Screenshot (11694).jpg
That's because you're using POST for the "on get complete" It will does nothing. Post is used when you connect to a URL.
To receive data, all you can do with GetObject is to get the content of a php page. So you must do:
* Get Object: On get complete
String : Set alterable string to Received$( "Get Object" )
Thank you, but I'm trying to do the opposite. To take an alterable string and send it to be retrived in the php script. Is there a way to do that?
First, you don't need the "on received" action for this, it does nothing in your example. The Post values must be sent with the get URL only.
Second, what you're asking is simply php/html coding, so just put this in your "collectdata.php" file:
Then do what you want with the values, in this example i just display them.Code:<?php if (isset($_POST['TubeSize'], $_POST['TubeLenght'], $_POST['AppID'],)) { $value1 = $_POST['TubeSize']; $value2 = $_POST['TubeLenght']; $value3 = $_POST['AppID']; echo $value1 . "<br>" . $value2 . "<br>" . $value3; } ?>