search

Home  >  Q&A  >  body text

php gets text in hyperlink

<a href="test.php">Click Test</a>

For example, there is such a tag hyperlink

How to get "Click Test" through php "These words?"

How to write test.php,

扬帆,起航.扬帆,起航.1604 days ago1372

reply all(5)I'll reply

  • 王萌

    王萌2020-07-24 11:33:34

    I also have the same question. One page has implemented parameter passing ***.PHP?id=XXX. How can another page obtain this parameter? In other words, how to write after "SELECT * FROM database name where field name="?

    reply
    0
  • 王萌

    Successfully solved: $colname_Recordset1 = "1"; if (isset($_GET['sno'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['sno'] : addslashes($_GET['sno']); } $query_Recordset1 = sprintf("SELECT * FROM pharmacy WHERE sno = %s", $colname_Recordset1); Mainly ($_GET['sno']), where sno is the parameter passed by the URL.

    王萌 · 2020-07-24 20:32:44
  • 75kg

    75kg2020-07-12 09:35:42

    This is what js should do

    reply
    0
  • 扬帆,起航.

    扬帆,起航.2020-07-08 00:24:42

    There are two pages

    1.html contains this content

    <a href="test.php">Click to test</a>

    It is not obtained from a single page, but obtained by clicking to jump to the php page

    reply
    0
  • 75kg

    After js is obtained, it is added to the URL of the href attribute as a query string and passed to other pages.

    75kg · 2020-07-12 09:37:34
  • Cancelreply