I am new to PHP and I have just a very, very basic knowledge of this language. I want to ask a question of Advanced or Exert Level I think.
My question is that I want to make a php page, in which there are a few news boxes, which are extracted from some information from a database. I have successfully scripted those boxes. But the main thing is their link, that where they will redirect the user. When the user clicks on the box, i want him to be taken to a page where he can read the full news story. But I want it to be just one PHP page that will show al the news stories. In technical words, when the viewer clicks on the box, the box submits the news id to the PHP page where the user will be taken to. Then that PHP page extracts text files of those names and presents them. But the main problem is only the id submission and recognition by the PHP page. I can do the rest of work.
I have the idea that the news boxes will have a unique id which it will pass to the page (like "/news.php?id=50"), but here's what 's the issue:
1. I don't know the HTML link code which will onclick send this id to the page (I know about forms and I have worked with them but don't know to submit something to a page on a single click on a link)
2.I don't know the PHP code which the page will use to identify a news or its id which was submitted to its URL.