Date:  01/12/2010 03:00:51 PM Msg ID:  004095
From:  Ali Koumaiha Thread:  004091
Subject:  Re: Passing Session vars in an FWX to PHP
I just tried it on my FoxWeb server, and it worked.

<%
m.tType = Session.GetVar("gType")
lcURL = "http://www.x-laser.com/esig/preview/index.php?transactionType="+m.tType
%>
<iframe src="<%=lcURL%>" width="100%" height="1000"></iframe>


Sent by James Williams on 01/12/2010 06:56:11 AM:
In your previous example you were missing a quote at the end of the src="".
Also does the php load in the iframe and just does not take any notice of the passed param or does the page simple not load.
Sent by Joe Goldsmiith on 01/11/2010 08:47:02 AM:
 James, thank you for your thoughts. I appreciate it. To be honest your example is the same as I have tried below where I mentioned using <%%> in the SRC string.
Best regards,
Joe
Sent by James Williams on 01/11/2010 06:39:15 AM:
Looks like you were on the right track but just have a few errors within the link try this:

<iframe src="http://www.x-laser.com/esig/preview/index.php?transactionType=<%=m.tType%>" width="100%" height="1000"></iframe>


<%
M.tType=Session.GetVar('gType')
%>
<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" Align="center">
    <TR>
        <TD width="50">
            <?php
            session_start();
            ?>
            <iframe src="http://www.x-laser.com/esig/preview/index.php?transactionType=M.tType width="100%" height="1000"></iframe>
<!--
I also have tried:
?transactionType=(M.tType)and
?transactionType=<%=(M.tType)%>
 -->
        </td>
    </tr>
</table>
Anyone have an idea how to pass the session var into an IFRAME calling a PHP script?
Thanks,
Joe