Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

showmyip.com/simple response within another page

Posted on 2011-03-04
1
Medium Priority
?
377 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
Bardobrave earned 2000 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

Plesk WordPress Toolkit

Plesk's WordPress Toolkit allows server administrators, resellers and customers to manage their WordPress instances, enabling a variety of development workflows for WordPress admins of all skill levels, from beginners to pros.

See why 2/3 of Plesk servers use it.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

604 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