Solved

showmyip.com/simple response within another page

Posted on 2011-03-04
1
352 Views
Last Modified: 2013-11-19
Hi,

I want an html page that firstly gets my public facing ip address and then adds that to another line within my html page.  I can get my public ip address with showmyip.com/simple but how do I then add that to a line within my html page that needs that result as part of its structure?

i.e. within my html page I need to say https://<url>/api.php?username=<username>&password=<password>&msisdn=<msidn#>op=<op>&ip=<result from showmyip.com/simple>

I can hard code the username, password, msisdn and op fields but it the ip thats the pain.

I could use examples of code if you have them..
Thanks.
0
Comment
Question by:CarlCCTVSI
1 Comment
 
LVL 19

Accepted Solution

by:
Bardobrave earned 500 total points
ID: 35035393
You need to call to showmyip.com/simple from within your code.

Sadly, HTML hardcoding don't allow you to do that. You need to use some server-side/client-side scripting to send a petition to showmyip.com/simple and post the returned data to your page result data.

 
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now