≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Send value to a database?
Posted by:
(you are not logged in)
Enter the missing letter in: "Inte?national"
(you are not logged in)
Text:
[quote][b]ddabrahim[/b] wrote: Hi. I would like to know would it be possible to send a value to a MySQL database somehow? I know there is a function to send a request to a website and using the GET method receive the value returned from the website. ccbDoHTTPRequest(url, callback) On the forum many people asked the same question and all of them getting the same reply, to use this function but I fail to see how it could be done as sending a value would require me to use the POST method but this function using the GET method by default and I can't see a way to change that. So for example I would POST value 100 to www.xyz.com/process.php Where the PHP receive the value and process it and write it in to the database. Then to get the value back I can use the above mentioned function to make a request to www.xyz.com/get.php where the PHP going to GET the value form the database and return it that I can use in a callback function. Is there any built-in solution in CopperCube? Or how am I supposed to use ccbDoHTTPRequest(url, callback) to POST a value? If there is no way to do it, probably I can get the values of "CopperCube variables" (?) if I'm correct using Js and then pass the value to PHP using AJAX call or http request but would like to know if there is any easy, built-in solution for this or not? Anyone could share some thoughts on this? Thanks.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact