How do you post data with a link

后端 未结 7 1957
感情败类
感情败类 2021-01-30 18:15

I have a database which holds the residents of each house in a certain street. I have a \'house view\' php web page which can display an individual house and residents when give

相关标签:
7条回答
  • 2021-01-30 19:02

    You cannot make POST HTTP Requests by <a href="some_script.php">some_script</a>

    Just open your house.php, find in it where you have $house = $_POST['houseVar'] and change it to:

    isset($_POST['houseVar']) ? $house = $_POST['houseVar'] : $house = $_GET['houseVar']

    And in the streeview.php make links like that:

    <a href="house.php?houseVar=$houseNum"></a>

    Or something else. I just don't know your files and what inside it.

    0 讨论(0)
提交回复
热议问题