Need help getting variable...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MooNBeaR
Forum Newbie
Posts: 1
Joined: Fri Dec 06, 2002 12:19 am

Need help getting variable...

Post 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.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

take a look

Post by AVATAr »

Take a look to the forum sticky!: viewtopic.php?t=511
Post Reply