Jump to content

Code help please


PrymlUrg

Recommended Posts

I am having a little trouble with this code.  I am able to get the iframe to work correctly.  However, the link is always the same.  The linked pages are just to be able to tell when it is working correctly.  I have tried different variations but I keep getting the yahoo page to open.  Is the something wrong with the way the code is written?

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
	<td width="100%" valign="top">
		{assign var="page_hdr01_text" value="{lang mkey='store'}"}
		{include file="page_hdr01.tpl"}
        </td>
    </tr>
    <tr>
        <td class="module_detail" width="100%" height="100%" valign="top">
		{if $user.level == '2' or $user.level =='1'}
		<iframe  src="http://www.gmail.com" name="storeIframe" align="center" scrolling="auto" frameborder="0" width="100%" height="900" style="text-align: center;">
		</iframe>
		{else}
		<iframe  src="http://www.yahoo.com" name="storeIframe" align="center" scrolling="auto" frameborder="0" width="100%" height="900" style="text-align: center;">
		<center>Sorry, your browser doesn\'t support iframes.</center>
		</iframe>
		{/if}
	</td>
</tr>
</table>

Link to comment
https://forums.phpfreaks.com/topic/94758-code-help-please/
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.