php - iframe design changing back to old design on page reload -


i styled external iframe here following @sequencedigitale.com answer here. when sort table data or search within iframe, page reloads old design comes up. why that?
code
using code fetch data external resource

<?php  $content = file_get_contents('http://www.exhibition-directory.com/expostars/index.php/'); $content = str_replace('</title>','</title><base href="http://www.exhibition-directory.com/expostars/" />', $content); $content = str_replace('</body>','<link rel="stylesheet" href="http://www.informatixtech.com/expostars/wp-content/themes/hotstar-child/hotstar-child/custom.css" type="text/stylesheet" /></body>', $content); $content = str_replace('</head>','<link rel="stylesheet" href="http://www.informatixtech.com/expostars/wp-content/themes/hotstar-child/hotstar-child/custom.css" type="text/stylesheet" /></head>', $content); echo $content;  ?> 

and iframe code

<?php                 echo '<iframe id="iframe" src="http://www.informatixtech.com/expostars/search-page.php" name="stack" height="1200" frameborder="0" scrolling="auto" width="100%"></iframe>';?> 

the form uses $_get variables, might like

$content = file_get_contents('http://www.exhibition-directory.com/expostars/index.php?'.http_build_query($_get)); 

so variables passed form appended fetched url

add form submits server instead:

$content = str_replace('<form name="searchform" action="index.php" enctype="multipart/form-data"  method="get">','<form name="searchform" action="http://www.informatixtech.com/expostars/search-page.php" enctype="multipart/form-data"  method="get">', $content); 

update css doesn't rely on form[action=index.php]

update: add links rewritten:

$content = str_replace("location.href='index.php?","location.href='http://www.informatixtech.com/expostars/search-page.php?", $content); 

one more replace:

str_replace('<div class="sc-button-reset"><a href="index.php','<div class="sc-button-reset"><a href="http://www.informatixtech.com/expostars/search-page.php', $content); 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -