I have a URL : foo.php?name=adam&lName=scott, and in foo.php I have a form which gives me values of rectangleLength & re
foo.php?name=adam&lName=scott
foo.php
rectangleLength
re
My personal preference would be to specify the keys you wish to accept and be sure to run the value through htmlspecialchars().
$url_params = array( 'tab' ); foreach( $url_params as $key ) { echo !empty( $_GET[$key] ) ? '' : ''; }