I made an account "hello" in bitcoin daemon and wanted to run this. Whenever i put in hello when prompted, getac1 would return empty array; whereas, getac2 and getac3 returns addresses associated with account hello. What am I missing? Assume I put in proper username, password, ip address, and port.
var answer = prompt('".$prompt_msg."'); "); $answer = ""; return($answer); } //program $prompt_msg = "Please enter account name"; $name = prompt($prompt_msg); $getac1 = $bitcoin->getaddressesbyaccount($name); $getac2 = $bitcoin->getaddressesbyaccount("hello"); $getac3 = $bitcoin->getaddressesbyaccount(hello); print_r($getac1); print_r($getac2); print_r($getac3); print_r($name); echo "