Jump to content

Get var woes


cooldude832

Recommended Posts

I'm trying to create a dynamic search type criteria and i'm passing it via a GET var and then it has this :

<?php
if(ISSET($_GET['adcrt']) && $_GET['adcrt'] != ""){
echo $search[$_GET['adcrt']];
echo "<br/><br/>".$_GET['adcrt']."<br/><br/>";
}
else{
echo $search['horse'];
}
?>

and it works great when my url is search.php or search.php?adcrt=anyadtype

but when my url gets other search vars like search.php?search=yes&adtype=horse&state=AL&breed=Akhal+Tekes&gender=Male&adshow=2&adcrt=horse&sort=1&limit=0

in there it fails any ideas?

 

Link to comment
https://forums.phpfreaks.com/topic/60316-get-var-woes/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.