View Full Version : retrive value
oorja
11-07-2010, 05:51 AM
I need to get the value 20 sep 2010 from <span class="f std" >20 Sep 2010</span> in a web page.
What would be the best way to get this value.
Thanks in advance.
are you doing this before or after the page is served?
before: use preg_match()
after: use javascript to find the value and post it to the server for processing (probably via ajax)
djr33
11-07-2010, 04:05 PM
Even better: before the page is generated, access that property directly. (This requires access to the database, etc.)
Even better: before the page is generated, access that property directly.
right! ...duh... :rolleyes:
djr33
11-08-2010, 05:59 PM
It's probably irrelevant here, but I'm just suggesting it because though it may seem harder to approach it that way, if there is any way to access the data directly it will actually be a lot easier. Otherwise your suggestion is the way to do it.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.