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
Solved

showmyip.com/simple response within another page

Posted on 2011-03-04
1
358 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to delete "dots" above Bootstrap 3 navbar 4 54
How to make a good PHP + MySQL + JS pagination system? 3 31
html border input line 7 13
Set time on Session (ASP) 14 22
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.

840 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