Try and figure it out for yourself and you'll probably learn quicker.
Here's something to get you started:
PHP Code:
<?php
if (isset($_GET['extension']))
{
switch ($_GET['extension'])
{
case "mp3":
$ext = "mp3";
// Add your url code and add the .mp3 where necessary
break;
case "wma":
$ext = "wma";
// Add your url code and add the .wma where necessary
break;
// Etc...
// echo "http://www.google.com?q=" . $search . $ext;
}
}
?>
Sorry about the bad formatting but it's a bit hard to do indents on here.
Hopefully you can figure it out from here,
Good luck!
Bookmarks