PHP Novice Help: How to get the title value of the hyperlink?
This post was last edited by Ilelex on 2013-10-31 10:07:11
Title.
such as a hyperlink:
Hypelinktitle"Title=" Hyperlink Title 8"> Hyperlink Title 9
Use $_get[' title ' to get " Hypelinktitle"And how to get It" Hyperlink Title 8and Hyperlink Title 9"?
I hope the shrimp can give a hint on this hyperlink, thank you! PHP Get link text
Share to:
------Solution--------------------
Transfer via JS
------Solution--------------------
$ (' #hplink '). html ();
------Solution--------------------
Reference:
Quote: Reference:
Transfer via JS
Hyperlink Title 9
var _h = $ (' hplink '). html ();
And then what? Beginner PHP, can look at the details of the ha.
Testhtml
------Solution--------------------
Just put it right behind the question mark.
http://www.example.com/?title=HypeLinkTitle__ Hyperlink title 8__ hyperlink title 9__ Hyperlink Title 100
Get and then explode separate
$title _list = Explode ("__", $_get[' title ');
echo $title _list[0];
echo $title _list[1];
echo $title _list[100];
Reference:
Quote: Reference:
Send back to PHP?
Moderator of the big, yes.
To achieve the role is, click on this link, PHP background based on this link to read the article from the database related articles. Spiders have to be able to climb.
------Solution--------------------
Don't try to realize your idea, or press the upstairs
All of a sudden put in the DOM, with JS to switch the DOM display and hide it, so that spiders can be caught