I did a couple of searchs but didn't find anything probably because I don't know what it is called.
With the code I have below I want it where I could just make one if since they all output the same code.
So many something like
if($ext == mpeg or mpg or avi) <-- I know that doesn't work but is there a way to do what i want
PHP:
if($ext == mpeg) {
echo "<embed src=\"$dir/$file.$ext\" autostart=\"true\"></embed>";
echo "<br>\n";
echo "<a href=\"java script:history.back()\">Back</a>\n";
exit;
}
elseif($ext == mpg) {
echo "<embed src=\"$dir/$file.$ext\" autostart=\"true\"></embed>";
echo "<br>\n";
echo "<a href=\"java script:history.back()\">Back</a>\n";
exit;
}
elseif($ext == avi) {
echo "<embed src=\"$dir/$file.$ext\" autostart=\"true\"></embed>";
echo "<br>\n";
echo "<a href=\"java script:history.back()\">Back</a>\n";
exit;
}