Jump to content


Photo

Integrating a php script into my site


  • Please log in to reply
2 replies to this topic

#1 fd9

fd9
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 18 June 2006 - 06:17 AM

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.


#2 klaroen

klaroen
  • Members
  • PipPipPip
  • Advanced Member
  • 34 posts

Posted 18 June 2006 - 08:50 AM

<?php

include("pagename.php");

?>

Then you can use the varibles from your php file

#3 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 18 June 2006 - 09:40 AM

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...

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users