Page 1 of 1

Need help getting variable...

Posted: Fri Dec 06, 2002 12:19 am
by MooNBeaR
I'm kinda new to php, and I am still in the learning phase. Please excuse me for what may be a simple question...

I am wondering if I could get some help with a small block of code. I am trying to take the content of an HTML file and pull part of all of the hyperlinks on the page and put them into a variable.

The hyperlinks are formatted something like this:
http://www.sitename.com/index.html?z=T83K3&p=0

So, basically, a page of html with some <a href's scattered about and I want to put the string after z= into a variable from each of the links.

TIA: I thank anyone that can help.

take a look

Posted: Fri Dec 06, 2002 6:44 am
by AVATAr
Take a look to the forum sticky!: viewtopic.php?t=511