ASP - PHP kan nogle lige oversætte den kode så den virker i php?
ASP => PHP kan nogle lige oversætte den kode så den virker i php?Tror det er let hvis man bare kender lidt php, men det gøre jeg ikke :-(
Har taget en del af html kode væk så det var lidt letter at kigge på--
<% menuindex = 2 %>
<%
linkForside = "index.php"
linkKontakt = "Kontakt.php"
linkProdukter = "Produkter.php"
%>
<% if menuindex = 1 then %>
<table width="953" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="127" class="menutop_nomark" onclick="window.location='<%= linkKontakt%>';return false;"><a class="menutop" href="<%= linkKontakt%>">Kontakt</a></td>
</tr>
</table>
<% end if %>
<% if menuindex = 2 then %>
<table width="953" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="127" class="menutop_nomark" onclick="window.location='<%= linkProdukter%>';return false;"><a class="menutop" href="<%= linkProdukter%>">Produkter</a></td>
</tr>
</table>
<% end if %>
<% if menuindex = 3 then %>
<table width="953" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="127" class="menutop_nomark" onclick="window.location='<%= linkForside%>';return false;"><a class="menutop" href="<%= linkForside%>">Forside</a></td>
</tr>
</table>
<% end if %>
Tak på forhånd--- Sun
