How novice php Gets the title value of the hyperlink

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.