Hi all, thanks to take the time to read me and try to help me! Ok, what i need to have, is a splash screen in my index.php, which will be like this one: (go on my website http://www.casinosno1.com, and then go to the bottom (footer), and click Contact Us) http://www.casinosno1.com/images/dp.jpg An animated window should apear. This is how i call the window: <a rel="shadowbox;width=610;height=420;" href="/include/shadow_box_contact.php" title="<?php echo $texte_contact_form_titre; ?> - CasinosNo1.com"><span style="color:#999"><?php echo $btn_contact; ?></span></a> Code (markup): WHAT I NEED: I need to get this window when someone come on my website main page, but ONCE. I guess its a PHP session.. but im not sure. The dialog must not apear again each time the same person go to the home page.
You need something like this: session_start(); if (!isset($_SESSION['popmeupscotty'])) { $_SESSION['popmeupscotty'] = 1; echo "<!-- popupcode here -->"; } PHP:
This depends on your current PHP script. If "session_start()" ist already done by your script, then you have to omit it. You can test if a session is started by: if (strlen(session_id())>0) { // session was already started, you can omit "session_start()" } PHP: And you have to wrap the php code into "<?php" and "?>". Do not forget to insert your Popup Code. You can also ask someone to do this for you here. I guess $10 to $15 would be fair trade. If you want to do this on your own and have no idea whats all about with "session" please look at Regards Flexdex
Ok great i will give a try to all of this soon, after i finished to work on my new website. So stay in touch with this post. You can also ask someone to do this for you here. I guess $10 to $15 would be fair trade -> no not not that bad in PHP.. i code my own websites alone with database and admin pages, but i had no time to search on google for session thing. Sometimes forum have better answers than google! Thanks