Through a URL, I want to display a set of information in the page's HTML, however, there are values I want to repeat in certain URL's and not in others.
Example:
<?php echo "<div class='campo1'>" . $_GET['c'] . "</div>" ;?>
I want to repeat the $_GET['c']
in the URL, and automatically generate a new DIV with the new value passed by the URL
What I can not do is hit PHP in HTML. I've tried duplicating the echo
function above, but if I do not enter the value of her GET in the URL, the DIV is displayed anyway (blank), something I do not want to happen. How should I proceed?