Jump to content

chrishau

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chrishau's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. shouldn't an IFrame just show what's inside the link?
  2. Yeah, I tried other websites as well and it works fine. It is just that the calendar php script that I want on my site is located at http://www.ntnui.no/seiling/oldpage/leie.php. And I cannot find any javascript references in the php scrip that is run on that site. I would be happy to share the code with someone if they could help me with it, but as the code is not mine I would have to send it privately. Thanks in advance!
  3. Hi! I am trying include an old booking script from an old website in a iframe so that I don't have to rewrite the entire thing. The problem is that when I access the site where I have the iframe the browser immediately gets redirected to the php page itself... Anyone know a workaround for this? I am using wordpress and the link to the site with the iframe is: http://org.ntnu.no/seiling/?page_id=9&langswitch_lang=no And this is the ifram code that I am trying out: <iframe src ="http://www.ntnui.no/seiling/oldpage/leie.php" width="300" height="300"> </iframe> Thank you in advance!
  4. Hi! I have a problem with creating a random header rotator for my website. In my CSS the header is referred to by this code: #header h1 a {display:block;background:url(images/banner1.jpg) no-repeat left;height:180px;} I wrote this to put in my header.php (Im using wordpress) right over the <?php wp_head(); ?> so that it would overwrite what the css says. Code follows: <style type="text/css"> #header h1 a {display:block;background:url(<?php $stylesarray = array("banner1","banner2","banner3"); $random = $stylesarray[rand(0,count($stylesarray)-1)]; echo "url(images/".$random.".jpg);" ?>) no-repeat left;height:180px;} </style> I have created banner1.jpg to banner3.jpg but I still just get the banner1.jpg that is written in the css file. Any tips on how to solve this? Thanks in advance! My website is btw www.175days.no
  5. Thanks :) Tried banning the ip's but they keep changing.. and tried sending mails to their providers aswell but nothing really happening there so will keep on trying!
  6. Thanks! I know it is not the most advanced solution...but the battle has to begin somewhere right? :)
  7. Hey! I have a problem... I have a tagboard on my homepage - www.dagangstas.net and it constantly gets filled up with spam so I deciced to do something about it and I want to create a filter that checks the tags for spam words. But I am not sure how.. Here is what I have so far! [code] $cjmsg = $_POST['cjmsg']; $spam_array = array('breast enlargement', 'penis enlargement', 'weight loss', 'Incest Sex', 'Hentai Porn', 'Lose Weight', 'Free Money', 'Credit card', 'green card lottery', 'Viagra'); function contains_spam($spam_array,$cjmsg) { foreach ($spam_array as $spamitem) { return true; } return false; } [/code] As you can see the spam_array contains the words I want to ban and $cjmsg contains the tag. How can I check the words in $cjmsg against the spam array? Any help would be appreciated!! :)
  8. Thanks for the help but I have gone through the validator several times now and removed all errors except for some that I seem to get due to the links I have for my album. So my page passes the validation and there seems to be nothing missing... I am not stupid though so I know there is something missing but was hoping for validation to find it... I have updated the www.dagangstas.net/index.php so that you can run it though the validation yourself and check. Any other smart clues?
  9. Check out www.dagangstas.net/index.php paswd: admin/admin If you log in and then log out using IE the whole page shifts... this is probably a css problem but I figured this was the place to ask since it happened after I made a php very simple cms. Now in any other webbrowser everything looks fine, but not in IE. Here is the code that is responsible for making sure the right content is showed in the right sidebar of my page. [code]<? if(isset($_SESSION['loggetinn'])){ echo 'Logget inn som '.$_SESSION['user']; ?> <div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="index.php?action=logout">Logout</a>&nbsp;</font></div> <? }     else{ ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000066">   <tr>     <td align="center" bgcolor="#000066"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Login</strong></font></td>   </tr>   <tr>     <td bordercolor="#FFFFFF"><form name="form1" method="post" action="index.php">       <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><br> &nbsp;User:           <input type="text" name="user">         </font></p>         <p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;Pass:               <input type="password" name="pass">         </font></p>         <p align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">           <input type="submit" name="Submit2" value="Submit">         </font></p>       </form>     </td>   </tr> </table><br> <? } ?> [/code] Then after pressing the logout button this check runs: [code]<?php require_once('includes/Sentry.php'); $sentry = new Sentry(); if ($HTTP_POST_VARS['user'] != ''){ $sentry->checkLogin($HTTP_POST_VARS['user'],$HTTP_POST_VARS['pass'],4,'index.php','failed.php'); } if ($HTTP_GET_VARS['action'] == 'logout'){ if ($sentry->logout()){ echo '<center>You have been logged out</center><br>'; } } ?> [/code] The sentry.php deals with session control etc.. Now can anyone tell me why this only screws up in IE? Would really appreciate it...
×
×
  • 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.