473,383 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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:
1933phfhK3ZgFQNLGSDXvqCn32k2buXY8a will return like 20000
1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF will return like 7995705650837
1NibBDZPvJCm568CZMnJUBJoPyUhW7aSag will return 0
HOW TO WRITE CODE FOR THIS??
May 1 '14 #1
2 1498
Dormilich
8,658 Expert Mod 8TB
what have you tried?
May 1 '14 #2
koharu
10
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.
May 5 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: R. Stormo | last post by:
I have a problem showing output that is comming from a script. If I make a script running at commandline it do work and everything are showing. But when I try to execute it from within my proggy...
2
by: lkr | last post by:
how to capture java output from cammand line agrument using c#
1
by: Marcel | last post by:
Hi, I used the following code Jochen Kalmbach suggested to run an external program: System::Diagnostics::ProcessStartInfo *si = new System::Diagnostics::ProcessStartInfo();...
1
by: =?Utf-8?B?U2luY2xhaXI=?= | last post by:
Hi everyone, it happened to my VS2002 that I can't see Output window. I selected view-other windows-output, but nothing happened. It is really nightmare to find errors after build process. No...
3
by: ajh | last post by:
Using Ubuntu 5, Apache2 and PHP 4 I am trying display in a web browser the output from a program I wrote in C. Here is an abridged version of my code (I can post all of it later): <?php ...
3
by: eng.sharif | last post by:
hi group i am try simple example is : // t4.cpp : Defines the entry point for the console application. // #include "stdafx.h"
15
by: Giff | last post by:
Hi again, I need a suggestion. Right now I am developing an application and I want to be able to output on screen some variables. Anyway, I want to remove these output operations when passing...
1
by: Primary Second | last post by:
Hello, First of all, I'm a bit new to OOP PHP. I'm currently creating a basic Template Engine. Everything is working fine until I want to load dynamic content (using a $var). Let me draw the...
0
by: Saumitra Kumar Paul | last post by:
Dear Friend, I am trying a .Net remoting project hosted in a console application. I have the following code in remote object class. Public Class ServerTime Inherits MarshalByRefObject...
1
by: Sikander | last post by:
i am facing the problem that when i write a program in editor and i want to show output in browser it give the same code in browser....i am using xampp...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.