how to show output?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ADITYA NAYAK
    New Member
    • May 2014
    • 1

    how to show output?

    1. A text field Like:
    Enter Address: _______________ _____
    2. On clicking submit, you should show a value computed by a logic below.
    3. Logic:
    Make a http call to an url of this format:
    http://blockchain.info/q/addressbalance/<address>
    Where <address> is the value given above in the text field.
    4. The output of the above http call should be zero.
    Some sample address are given below:
    1933phfhK3ZgFQN LGSDXvqCn32k2bu XY8a will return like 20000
    1FeexV6bAHb8ybZ jqQMjJrcCrHGW9s b6uF will return like 7995705650837
    1NibBDZPvJCm568 CZMnJUBJoPyUhW7 aSag will return 0
    HOW TO WRITE CODE FOR THIS??
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what have you tried?

    Comment

    • koharu
      New Member
      • Apr 2014
      • 10

      #3
      What I would do to achieve this ADITYA NAYAK is as followed;

      Create a $_POST html fieldset and form, code my script to wait for data to be posted. Using the posted data from the input, I would then use CURL to execute the URL and return the output into a variable where I can manipulate the output, then echo the output to the browser.

      Perhaps this might be a good method for you too? Be careful of XSS vulnerabilities in your code.

      Comment

      Working...