mercredi 11 janvier 2017

I Want to way to extract some information from a html page and display it on another

Now, the query i have is that Suppose there is an html page with the following elements

<input type="text" name="id">
<input type="submit" name="go" value="submit">
<div id="answer></div>

Now, when we input a value such as "100" in textbox and click it updates the value in the div ex:- ID = 1, then value inside div is Tom , if id = 2 then harry etc.

Now i want to create another html page which shows me the value of all the things from 1 to 100.

The only way i have of knowing the value is by inputting it in the first page.

So i need someway to display values of all ids from 1 to 100 in a single page without manually entering value and copying it answer and creating a list.

Thankx For The Help

Alternatively if you want to understand my question i can tell another example like i want to create a way to display the first link from google if "A" would had been typed or "B" or "C" etc.

Like after extracting it would look like

Value      Link
------     ------
A           http://www.a.com
B         http://www.bcom
C          http://www.c.com
D         http://www.d.com
E         http://www.e.com
F          http://www.f.com
G          http://www.g.com




Aucun commentaire:

Enregistrer un commentaire