Pass a button-like link value through the url to be used on another page with javascript or php

2

Good morning everyone! I am new to web development and am developing a web application with Php, javascript and mysql. My question is the following question: I have a table, where I am loading the information that I retrieved from my database, and are being displayed as they should be. What I need is in one of the cells, I load the information id and when I click on it I want to open another tab containing the information of that particular id, what I can not do is pass this id using <a href="minhapagina.php"></a> . And the other doubt would be, how do I get another cell from that same table and check if the value in it is greater than zero, and if it is, change the background. I thank the help of all!

    
asked by anonymous 22.10.2015 / 19:43

1 answer

2

quite simply in php:

<a href="minhapagina.php?foo=bar"></a>

<?php
    $foo = $_GET['foo']; // 'bar';
?>
    
22.10.2015 / 19:49