Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2218 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Get Element Attribute with cURL (PHP)

Thread title: Get Element Attribute with cURL (PHP)
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
06-02-2010, 03:36 AM
#1
JasonGDX is offline JasonGDX
JasonGDX's Avatar
Status: Junior Member
Join date: Nov 2006
Location: Pennsylvania, USA
Expertise: Design, HTML, CSS, PHP, MySQL
Software: Photoshop, Coda
 
Posts: 95
iTrader: 4 / 100%
 

JasonGDX is on a distinguished road

  Old  Get Element Attribute with cURL (PHP)

I don't know much about cURL, but I am pretty sure that is what I would use to accomplish this. I need some help here.

I want to get the value of an attribute from a specific element on an HTML page.

This is the code:

Code:
<a href="http://www.example.com" class="lb_link right" id="linkSkip">Skip This Page ></a>
I want to get the link url from the <a> element with the id of "linkSkip" and put that in a variable.

Could anyone help with this?

Reply With Quote
     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed