Jump to content

Echo a section of another page


robertnorgren

Recommended Posts

Hi!

 

I'd like to echo a text section from pageB.php to pageA.php

 

Is it possible to mark it up somehow and tell the browser to echo the variable?

I'm thinking something like this should work after some alteration:

 

 

pageA:

<?php echo pageb.php/variable; ?>

 

 

pageB:

 

<?php

$variable =

 

 

***the content section I want to be displayed on pageA***

 

";

?>

 

 

 

I'd be very grateful if someone could help me out. (:

Link to comment
https://forums.phpfreaks.com/topic/226519-echo-a-section-of-another-page/
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.