Jump to content

Link and switch!


FUNKAM35

Recommended Posts

Please help - I am stuck. Have got switch to work but cant get the link to work every time I move the

</a>

it goes blank how can I make the switch a link as well code below:

echo "</p><a href=\"animals.php?animal=$animal\" >$animal</a>\n";switch ($animal){
case "Cat":
  echo" Dog";
  break;
  case "Pig":
  echo"  Test";
  break;
}

Link to comment
https://forums.phpfreaks.com/topic/111850-link-and-switch/
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.