Splitting a webpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to create an application that stores details from another
website.

 

I've successfully downloaded the webpage - that was the easy bit - now I
want to be able to pick out specific details from the page.

Unfortunately, the designer of the page didn't do nice things like put
summary bits in tables, or <!-- --> labelling to say what everything is
within the page!

 

So, I've got the following string, the info I want is the address (House,
Sandbrook Park<BR>Sandbrook Way <B>Rochdale</B> Lancashire OL11 1SA) and the
telephone no (Tel : 01706 745832).

 

Can someone suggest a way of going through the string to find the relevant
bits - is split the easiest way?

 

Cheers

James

 

 

<HTML>

<HEAD>

<TITLE>ABTAnet - Searching for ABTA Number V6896</TITLE>

</HEAD>

<CENTER>

<BODY BGCOLOR=#FFFFFF TEXT=#000000 LINK=#FF0000 VLINK=#0000FF ALINK=#F0FF4F
ONLOAD="">

<CENTER>

<font face="Arial">

<b>ABTAnet Search: ABTA Number</b>: &quot;<b><font
color="#000080">V6896</font></b>&quot;</font>

<BR>

<TABLE BGCOLOR="#FFFFFF" BORDER=0 CELLSPACING=0 CELLPADDING=2 WIDTH=500>

<TR> <TD VALIGN=TOP WIDTH=214>

<IMG src="/images/space.gif" BORDER=1 VSPACE=0 HEIGHT=1 WIDTH=214>

</TD>

<TD HEIGHT=1 WIDTH=110>

<IMG src="/images/space.gif" BORDER=1 VSPACE=0 HEIGHT=1 WIDTH=110>

</TD>

<TD HEIGHT=1 WIDTH=118>

<IMG src="/images/space.gif" BORDER=1 VSPACE=0 HEIGHT=1 WIDTH=118>

</TD>

<TD HEIGHT=1 WIDTH=58>

<IMG src="/images/space.gif" BORDER=1 VSPACE=0 HEIGHT=1 WIDTH=58>

</TD>

</TR>

<TR>

<TD VALIGN=TOP colspan=3><FONT FACE=ARIAL SIZE=-1><B>MyTravel Tour
Operations Ltd</B>&nbsp;&nbsp;&nbsp;&nbsp;Head Office<BR><A
HREF="link2000.mv?+433.00000+ans">  <IMG SRC="/images/web.gif"   BORDER=0
ALT="Click here for member website"  HEIGHT=14 WIDTH=51></A> Scandinavia
</FONT></TD>

<TD VALIGN=TOP align=right><FONT FACE="ARIAL" SIZE=2><B>V6896
</B></FONT></TD>

</TR>

<TR>

<TD valign=top><FONT FACE=ARIAL SIZE=2>Holiday House, Sandbrook
Park<BR>Sandbrook Way <B>Rochdale</B> Lancashire OL11 1SA</TD>

<TD ALIGN=LEFT VALIGN=TOP><FONT FACE=ARIAL SIZE=2></FONT></TD>

<TD COLSPAN=1 VALIGN=TOP align=LEFT><FONT FACE=ARIAL SIZE=2>Tel : 01706
745832</TD>

<TD ALIGN=RIGHT VALIGN=TOP></TD>

</TR>

<TR>

<TD valign=top colspan="4">

<BR>

<font face="ARIAL" size="-1">Additional Trading Names registered with
ABTA:&nbsp;<br>

<UL>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Tradewinds<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Sun Cruises<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; MyTravel<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Escapades<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Aspro Holidays<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Aspro<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours Flight Warehouse<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours Early Bookings<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours Direct Lates<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours Direct<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours Cancellations<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours<BR>

(V6896)&nbsp;&nbsp;&nbsp;&nbsp; Airtours Holidays<BR>

</font></TD>

</TR>

</TABLE>

</CENTER>

<P><FONT FACE="ARIAL" SIZE="-2"><CENTER>Search completed in 0
seconds</CENTER><BR>

</BODY>

</HTML>

 

 


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux