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 given the house number using ‘post’. I also have a ‘street view’ web page which gives a list of houses. What I want to know is if you can have links on the street view which will link to the house view and post the house number at the same time without setting up a form for each?
Regards
I assume that each house is stored in its own table and has an ‘id’ field, e.g house id. So when you loop through the houses and display them, you could do something like this:
Then in house.php, you would get the house id using
$_GET['id'], validate it usingis_numeric()and then display its info.