?
Solved

showmyip.com/simple response within another page

Posted on 2011-03-04
1
Medium Priority
?
368 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

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

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

When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

770 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