Hi there,
I'm new to PHP, and i want to create a pop-up (on page load) on certain dates..
What i have is the script for the pop-up:
<body scroll="auto" <?php $today =date("d-F"); if ($today==$datum )
{echo "onLoad=".$g_bi rthday_pop;}?>>
The pop-script =
$g_birthday_pop = <<<EOT
"MM_openBrWindo w('http://www.nu.nl','pop up','width=300, height=300')"
EOT;
$datum is in another file (include/datum.php):
<?php
$datum = "30-December";
?>
And this works if the date is 30th of December,
but i want it too on other dates that you put in $datum
Something like:
<?php
$datum = "30-December";"10-March";
?>
So i want to control the pop-up just by editing the "datum.php"-file
Thanks in advance,
Greetings Krunkelgarten
I'm new to PHP, and i want to create a pop-up (on page load) on certain dates..
What i have is the script for the pop-up:
<body scroll="auto" <?php $today =date("d-F"); if ($today==$datum )
{echo "onLoad=".$g_bi rthday_pop;}?>>
The pop-script =
$g_birthday_pop = <<<EOT
"MM_openBrWindo w('http://www.nu.nl','pop up','width=300, height=300')"
EOT;
$datum is in another file (include/datum.php):
<?php
$datum = "30-December";
?>
And this works if the date is 30th of December,
but i want it too on other dates that you put in $datum
Something like:
<?php
$datum = "30-December";"10-March";
?>
So i want to control the pop-up just by editing the "datum.php"-file
Thanks in advance,
Greetings Krunkelgarten
Comment