I would like to update values I have in a simple PHP script hosted on a server using inputs. The PHP table looks like this...
The Button "On Click"code looks like this:
myvalues = {Data1 = ""..data1, Data2 = ""..data2};
result = HTTP.Submit("http://www.mydomain.com/myscript.php", myvalues, SUBMITWEB_POST, 20, 80, nil, nil);[/CODE]
Can someone tell mw what's wron with the code, please?
PHP Code:
<?php
// Data List
$myLists['data'] = array(Data1=>"Dog",
Data2=>"Cat"
);
echo $myLists['data']['Data1'];
echo $myLists['data']['Data2'];
?>
Code:
data1 = Input.GetText("Input1"); data2 = Input.GetText("Input2");
result = HTTP.Submit("http://www.mydomain.com/myscript.php", myvalues, SUBMITWEB_POST, 20, 80, nil, nil);[/CODE]
Can someone tell mw what's wron with the code, please?
Comment