Jump to content

monty 187

Members
  • Posts

    46
  • Joined

  • Last visited

Everything posted by monty 187

  1. monty 187

    php and java

    Guys, does anyone know if it is possible to pass a variable to a java 2 function? Anyone ever done it?Michael
  2. Sorry, it worked in firefox but not in IE. Their are a few items which are in different formats in both, is this an issue with css? I usually use tables to structure data but decided I need to start using css for more control.Thanks
  3. thanks, that worked great!!
  4. sorry guys but I cant get each element on the same line, my css reads#menubar ul{ display:inline; text-align:right; list-style-type: none; margin: 0px;}#menubar li a{ display:inline; width: auto; height: 20px; text-decoration: none; text-align: centre; margin-right: 10px; margin-bottom: 2px; margin-top: 2px; padding: 0px; padding-left: 10px; vertical-align: middle; font-size: 14px; font-weight: bold; background-color: #FF0000; color: white;}#menubar li a:hover{ background-color: #FFFFFF; color: black;} but the elements are on different lines?Any ideas?Michael
  5. Guys this is probably an easy one but does anyone know how to keep list items on the same line using css?CheersMM
  6. Thanks a million for taking the time to explain that stuff! It very much appreciated Skemcin!!
  7. Thanks man, I will get back to you. I am the developer of the page so I may try to learn it myself but once again cheers
  8. monty 187

    applets in php

    Guys,Just wondering if their is any trick to putting an applet in a php page? I have tried it in a php page and in a normal html page, it works in the html but not in the php. Just wondering if im doing something wrong.ThanksM
  9. Thank you,got a tool to do my site map, here is the link if any1 is interested,http://www.auditmypc.com/free-sitemap-generator.aspMonty
  10. Guys,I am wondering how i get my page to appear on search engines like google. I have included a meta tag with keywords etc and went to google addurl and tried to add it their but it says Googlebot last successfully accessed your home page on Jan 18, 2007.which is before I updated the site, it is www.pps.ie and it is not showing up in google at all.Also what is a sitemap, google is asking 4 it so it may help.Cheers for the help guys!!MM
  11. Right, sorry about this people but i still cant do it, and i can see why, ill post the alterations i have mad so far, <td onmouseover="showmenu('tutorials')" onmouseout="hidemenu('tutorials')"> <td width="170" id="topmenu" class="menu"><a href="http://localhost/test/community.html">My Community</a> <table class="menu" id="tutorials" width="120"> <tr><td class="menu"><a href="/html/default.asp">HTML</a></td></tr> <tr><td class="menu"><a href="/xhtml/default.asp">XHTML</a></td></tr> <tr><td class="menu"><a href="/css/default.asp">CSS</a></td></tr> <tr><td class="menu"><a href="/xml/default.asp">XML</a></td></tr> <tr><td class="menu"><a href="/xsl/default.asp">XSL</a></td></tr> </table> </td> Now this is within a menu i have already designed because i only need one option to be a dropdown!The rest I have put in a style sheet like this, function showmenu(elmnt){document.getElementById(elmnt).style.visibility="visible"}function hidemenu(elmnt){document.getElementById(elmnt).style.visibility="hidden"} And the style for the table is #topmenu{ text-align:center; font: .95em/1.6em Arial, Helvetica, sans-serif; color:#DBDFEE; background-image:url(http://pmigroup.ie/images/backblu.jpg); background-repeat:repeat;}#topmenu a{ text-decoration:none; color:#DBDFEE; }#topmenu a:hover{ color:#ffffff; background-image:url(http://localhost/images/backblu2.jpg); background-repeat:repeat;}td.topmenu{background:lightblue}table.topmenu{font-size:100%;position:absolute;visibility:hidden;} Any help thankz a million!!!
  12. Awsome, thanks!!!!!!!!!!
  13. Hi All,I know that this topic has been covered b4 and I have tried the css version before and failed. I and trying to create a menu from which a drop down menu drops on mouse over! I think their are a couple of ways to do it so I wanted to know if anyone has attempted this before and can tell me how. Also if anyone has found good links to help me do it. I dont even know if I have the name for this correct because google is giving me dropdown lists.Thanks a million guys;)Monty
  14. monty 187

    email date

    Hi Guys,I have a php contact for which when filled in sends a mail to an address. The problem is when the mail arrives it has 'unknown date' on it. My question is, the their a way to set the date on the mail when using phps mail() function,Currently it says mail( "info@xxx.com", "Subject: $name", $message, "From: $email" ); Thanks a mill!!
  15. Does it not work with that version? sorry i didnt realise
  16. Hi All, I found a great tutorial and code page which shows exactly how to set up a signup page, and login and logout pages! It also remembers users!! It helped me loads so hopefully it will help others as i know this is a difficult area to get your head around,Logon with php tutorialAny security issues please let me know!!Thanksmonty
  17. Also guys is it possible to have the menu set to <display:none> and then have it appear when hovered over? If i can get this going maybe i can alter it to appear when another element has been hovered over, ie hovering over one menu element makes the other element appear.
  18. monty 187

    css positioning

    Hi Guys,Im sure some1 has done this before so here goes, i am trying to create a dropdown menu from a menu on my page. I am going to do this by setting the display option when a mouse is moved over the menu option. I am currently trying to position the menu below the drop menu on the page. my problem is when i resize the browser window the position of the drop menu changes. Here is the code i use to position it, #dropmenu{ position:absolute; left:700px; top:40px;} Thanks a million guyz!!
  19. <html><body><?php $email="fulmont99@gmail.com"; $pattern = '/^[A-z0-9_\-\.]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{2,4}$/'; if (!preg_match($pattern, $email)) { echo "The mail is not valid"; } else { list($Username, $Domain) = split("@",$email); if(getmxrr($Domain, $MXHost)) { echo "The mail is valid"; } else { if(fsockopen($Domain, 25, $errno, $errstr, 30)) { echo "The mail is valid"; } else { echo "The mail is not valid"; } }} echo " $email";?></body></html> Hi all, im am working on a mail validation test program. It appears to be working up until if(getmxrr($Domain, $MXHost)) ; i have read on goolge that this happens when the script is run on a windows server!The error is:Fatal error: Call to undefined function: getmxrr() in D:\hshome\nigel\pmigroup.ie\cp\Scripts\PHP\testmail.php on line 20Anyone any idea how to get around this to ensure the domain is correct in the email?Thanks
  20. oh man! that is excellent!!Thanks a mill!!!!!!!!!!!!!!!!!!!!!!!!!!
  21. Ok i have set it up like this as a test,<html><body><?php $email="fulmont99@gmail.com"; if (eregi("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email)) { echo "The mail is valid"; } else { echo "The mail is not valid"; } echo " $email";?></body></html> and it is giving invalid?? plus even if i do a "sd;fjshdfklj" it still says invalid? its making my brain sore!
×
×
  • Create New...