variables in a URL
2 posts by 2 authors in: Forums > CMS Builder
Last Post: July 6, 2011 (RSS)
By efi-revivo - July 6, 2011 - edited: July 6, 2011
Hello,
How can i show one or more variables in my results page?
i found this code:
<?php echo $_REQUEST["category"];?>
<?php echo $_REQUEST["more"];?>
But its work with only one variables
and i get error when one is empty.
How can i show one or more variables in my results page?
i found this code:
<?php echo $_REQUEST["category"];?>
<?php echo $_REQUEST["more"];?>
But its work with only one variables
and i get error when one is empty.
Re: [efi-revivo] variables in a URL
By Jason - July 6, 2011
Hi,
Try this:
"@" will suppress the error if that variable isn't there.
Hope this helps
Try this:
<?php echo @$_REQUEST["category"];?>
<?php echo @$_REQUEST["more"];?>
"@" will suppress the error if that variable isn't there.
Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/