fd9 Posted June 18, 2006 Share Posted June 18, 2006 I have a php script that I would like to integrate into my website, specifically using iframe. My problem is that I need to be able to use some of the variables that were used in the script. I'm under the impression that if I use an iframe, I won't be able to access those variables declared within the embedded iframe script, correct? I would like to be able to do this so that I can easily integrate the script onto my page, and then concentrate on the content on my page without having to worry about extra code from the script.Any suggestions? What do you think I should I do? I'm don't know PHP very well, and I’m open to anything right now. Quote Link to comment https://forums.phpfreaks.com/topic/12285-integrating-a-php-script-into-my-site/ Share on other sites More sharing options...
klaroen Posted June 18, 2006 Share Posted June 18, 2006 <?phpinclude("pagename.php");?>Then you can use the varibles from your php file Quote Link to comment https://forums.phpfreaks.com/topic/12285-integrating-a-php-script-into-my-site/#findComment-46942 Share on other sites More sharing options...
litebearer Posted June 18, 2006 Share Posted June 18, 2006 Might also consider using a div. That way any variables would be easily available.Should you need tables for formatting any data,, they can be used in the div.Lite... Quote Link to comment https://forums.phpfreaks.com/topic/12285-integrating-a-php-script-into-my-site/#findComment-46946 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.