hi all,
i want to pass a value from one php file to another popup window
the value i am having is (in sample.php)
i want to show it in popup.php with the style,font,colo r as given above.
i have tried the below code, it works well in IE, but not in firefox
sample.php
popup.php
i want to pass a value from one php file to another popup window
the value i am having is (in sample.php)
Code:
$value="<p><em><font style='background-color: #ccffff' face='Comic Sans MS' color='#ff0000' size='5'>pour faire suite à mon dernier mail sous une autre forme nous faisons en ce moment des essais, merci de vous connecter , de renseigner votre profil et me faire parvenir les documents que je vous ai demandé ou tout autres informations que vous voudriez voir figurer sur le site.</font></em></p>";
i have tried the below code, it works well in IE, but not in firefox
sample.php
Code:
<?php
$value="<p><em><font style='background-color: #ccffff' face='Comic Sans MS' color='#ff0000' size='5'>pour faire suite à mon dernier mail sous une autre forme nous faisons en ce
moment des essais, merci de vous connecter , de renseigner votre profil et me faire parvenir
les documents que je vous ai demandé ou tout autres informations que vous voudriez voir
figurer sur le site.</font></em></p>";
$value = str_replace("#", "", $value);
$value = str_replace("'", "@", $value);
$demo="Javascript:showme("."'popup.php?somevalue=".""".$value."');";
//echo $demo;
?>
<a href="<?php echo $demo?>">click JS</a>
<script language="javascript">
function showme(URL) {
//alert(URL);
//window.open(URL);
window.open(URL,"target_blank",
"toolbar=0, location=0, statusbar=1, menubar=0, scrollbars=0, resizable=0, width=600, height=500");
}
</script>
Code:
<?php
$demo= $_GET["somevalue"];
$demo=stripslashes($demo);
$demo=str_replace("'", "", $demo);
$demo=str_replace('"', "", $demo);
echo $demo;
?>
Comment