Jump to content

zanfranceschi

Members
  • Posts

    65
  • Joined

  • Last visited

1 Follower

About zanfranceschi

  • Birthday 09/27/1979

Contact Methods

  • Website URL
    http://www.zanfranceschi.com.br/
  • ICQ
    0

Recent Profile Visitors

3,101 profile views

zanfranceschi's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. It still hepls me.www.php.net is my php reference as w3schools is my css and xhtml reference. Any doubt about css/xhtml I browse here.
  2. after unset($array['key']), this isn't counted anymore.
  3. zanfranceschi

    PHP Mailing

    if you're really serious about mailing programmes, PHP doesn't recommend the mail() function. They point you to http://pear.php.net/package/MailBut I don't know really what the difference is, i'm just telling you cause i remembered that.
  4. zanfranceschi

    Ajax

    ---edited---Oops, posted with reportingsjr. I guess his reply is more apropriated. Mine is just a simple copy of a working file.---/edited---I can't parse your code cause I don't know ajax, but I've just tried the w3schools example and it worked ok (the Source part (http://www.w3schools.com/ajax/ajax_source.asp)). <html><head> <script type="text/javascript"> var xmlHttp; function showHint(str) { if(str.length == 0) { document.getElementById("txtHint").innerHTML= ''; return; } xmlHttp=GetXmlHttpObject(); if(xmlHttp==null) { alert("Browser does not support HTTP Request"); return; } var url="ajax.php"// url=url+"?q="+str// url=url+"&sid="+Math.random() xmlHttp.onreadystatechange=stateChanged; xmlHttp.open("GET", url, true); xmlHttp.send(null); } function stateChanged() { if(xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") { document.getElementById("txtHint").innerHTML=xmlHttp.responseText } } function GetXmlHttpObject() { var objXMLHttp=null if(window.XMLHttpRequest) { objXMLHttp=new XMLHttpRequest(); } else if (window.ActiveXObject) { objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP"); } return objXMLHttp; } </script></head><body><form>First Name: <input type="text" id="txt1" onkeyup="showHint(this.value)"></form><p>Suggestions: <span id="txtHint"></span></p> </body></html> And this would be the ajax.php file Anything! Just testing...
  5. zanfranceschi

    PHP Mailing

    if you want to send one email at a time, you can do this:// $mail_list is the arrayforeach($mail_list as $mail) mail($mail, $subject, $message);This prevents your mail to be confused with spam. Eventhough it is... hehe
  6. I think I know what you want... <html><head> <style type="text/css"> body { text-align: center; } #wrapper { text-align: left; width: 760px; /* This is good for 800 x 600 */ margin: 0 auto; /* The magic */ border: 1px solid #000; /* If you want to see the boundaries */ } </style></head><body> <div id="wrapper"> Hi there! </div></body></html>
  7. And a wonderful place to look for is http://www.php.net/I see that justsomeguy always links to www.php.net when posting php functions. I bet he also thinks php.net is one of the best places to learn PHP. There always are examples on how to use functions.
  8. if what you want is what pulpfiction wrote, you might want a parent div to nest the three divs under the header for aligning proposes. It's absolutly not necessary, but might be helpful in the future.
  9. Thanks a lot!!!I learned new things from you.Didn't know that "*" meant 0 or more and "+" 1 or more. And you used a lot of parenthesis too, so i see it's right to separete pattern groups with ().And why didn't you put the last dots with the last group? Is this just a matter of taste or is there a logic behind it I can't see?Thanks a lot again!!! I see a new world of possibilities with regexpr!!!
  10. Do you want one top div plus 3 columns underneath stretching 100% horizontally?
  11. <pre><?php$target = "my.e-mail_with_symbols@domain.com.br";$re = "/^([a-z0-9\._\-]*)(@{1})([a-z0-9\._\-]*)(\.[a-z0-9]{1,3})$/i";echo "<b>$re</b> \t\t\t <b>$target</b>\n\n\n";if(preg_match($re, $target, $out)) { echo "<span style=\"color: blue;\">matchs</span>";} else { echo "<span style=\"color: red;\">doesn't match</span>";}echo "\n\n\n\n";print_r($out);?></pre> I just started trying some things with regular expressions, and I found this not to be that difficult, but i'm sure i just understand the basics.If someone who knows regexp could see if what I mean is what I wrote, I'd be very thankful!Here it goes:^ = must start with the first "block";([a-z0-9\._\-]*) = a to z, 0 to 9, with ".", "_" and "-" allowed infinite times(@{1}) = "@" must come after the first block only once([a-z0-9\._\-]*) = 3rd block, the same as the first(\.[a-z0-9]{1,3}) = last block preceeded by an dot (mandatory) having alphanumeric chars. Can find this pattern at least once and at most 3 tmes.$ = must end after the abovei = makes the pattern case insensitive.Is all this right? Am I on the right track of regexp? Am I using some unusual/bad practice with the patterns?Thanks a lot!!
  12. hahahahaI collect freak avatarshttp://www.zanfranceschi.com.br/etc/avatars/
  13. <span style="color: red;">word</span>or use <span class="unique-color">word</span> and set unique color in a css file or in the header.
  14. the cool thing about your calculator is that when a symbol is pressed the display is cleared. Very cool!
  15. zanfranceschi

    div rollover

    Or you can use very simple javascript. onmouseover="this.style.backgroundImage = 'url('.jpg')'; this.style.color = '#000';" onmouseout="this.style.backgroundImage = 'url('...')'; this.style.color = '#666';" Not sure if you use "url" or the image path only.http://www.irt.org/xref/style.htm good list with possibilities
×
×
  • Create New...