Search:

Type: Posts; User: Acey99; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: PHP 4+ Classes

    by Acey99
    Replies
    1
    Views
    2,278

    ok Solved it $test = null; #destroys the class.

    ok Solved it
    $test = null; #destroys the class.
  2. Replies
    1
    Views
    4,217

    If you could write your question more clearly &...

    If you could write your question more clearly & understandably maybe someone could help.
  3. Replies
    13
    Views
    8,562

    It's not php or the server. It's the email...

    It's not php or the server.
    It's the email program(s)
    if you want line feeds in email instead of <br> use \n\r (new line for pc/mac)

    yes most email programs read html, but not <br>, dunno why,...
  4. Thread: PHP 4+ Classes

    by Acey99
    Replies
    1
    Views
    2,278

    PHP 4+ Classes

    If I have :

    class MyClass{

    /*
    functions & what not ..
    */

    }
  5. Replies
    23
    Views
    11,520

    Hopefully the last post on this.. ...

    Hopefully the last post on this..


    ZnJhbmtAZnVydGVyLmNvbQ==

    do you think a bot will look at that & say - oh look, an email address ?
    I Don't. & agree, put in in a non accessable place like...
  6. Replies
    2
    Views
    2,552

    Solved it. class MyPost{ function...

    Solved it.




    class MyPost{

    function MyPost(){
    foreach ($_POST as $k => $v) $this->{$k} = $v;
    # reminder you can also use $_GET & $_COOKIE instead of $_POST
  7. Replies
    4
    Views
    2,896

    Always !

    Always !
  8. Replies
    4
    Views
    2,896

    on each of your backgrounds [ background:...

    on each of your backgrounds
    [ background: url(../images/nav_images/but_shows.jpg); ]

    you should add background: url(/foo/) 0 0 no-repeat;

    and

    #nav li:hover, #nav li.sfhover, body.welcome...
  9. Replies
    23
    Views
    11,520

    other things you can try: if using a...

    other things you can try:

    if using a linux/unix box, hide the emails in a . file (like .htaccess)
    don't use a file called emails (or have email in the filename)

    also hide the file somewhere...
  10. Replies
    2
    Views
    2,552

    _POST, _GET & Classes

    Is it possible to put _POST or _GET vars in a php 4+ class ??


    if I had


    class MyPost{

    function MyPost(){
    foreach ($_POST as $k => $v) $this->$k = $v;
  11. Replies
    23
    Views
    11,520

    ah, I understand try html encoding them or they...

    ah, I understand
    try html encoding them
    or they some encoding method of your own I use this :

    function EncryptText($iVal,$hex=""){
    $out = "";
    $sl = strlen($iVal)-1;
    ...
  12. Replies
    23
    Views
    11,520

    the other alternative is to have a "validation"...

    the other alternative is to have a "validation" image
    Thus needing a db (MySQL)
    and the GD Library (installed/compiled) ?

    & ok, so it's a decent browser detection class.
  13. Replies
    23
    Views
    11,520

    add his code to the browser class (near the end)...

    add his code to the browser class (near the end)



    function isValidBrowser(){
    return ( ($this->isIE() || $this->isMoz() || $this->isOpera()) && !$this->isBot() ) ? 1 : 0;
    }
  14. Replies
    23
    Views
    11,520

    no every bot either sends a useragent or not and...

    no every bot either sends a useragent or not
    and since we can make a "Valid" list we can kinda make an "invalid" list

    look at most bots
    http://en.wikipedia.org/wiki/Useragent#Bots
    what do...
  15. remove .href with goURL(this.href) so it'll read...

    remove .href with goURL(this.href) so it'll read goURL(this)

    and in the function add url.href

    function goURL(url){
    setTimeout(function(){window.location.href=url.href},100)
    }


    that should...
  16. Replies
    23
    Views
    11,520

    You could consider hiding the form from bots ...

    You could consider hiding the form from bots




    $ua = getenv("HTTP_USER_AGENT");

    $bot = (preg_match("/bot/i",$ua)) ? 1 : 0;;

    if (!$bot) {
  17. Thread: opening windows

    by Acey99
    Replies
    6
    Views
    3,472

    parent.opener ?

    parent.opener ?
  18. Replies
    8
    Views
    4,492

    Noted the point that IE 7 is out, but there are...

    Noted the point that IE 7 is out, but there are those who'll skip it (like me)
    who my uninstall it (yea!) or who knows what (Win <= 98 won't run IE 7 last I checked) & what if you have this...
  19. Replies
    8
    Views
    4,492

    here's one that baffles me.

    anyone ever create a movable layer that when you move it over form element's in IE < 7 the element shows through your movable layer ?

    Yet works like it's suppose to in all other browsers ?

    how...
  20. Thread: alert function

    by Acey99
    Replies
    2
    Views
    2,662

    how about a function function myalert(iVal){ ...

    how about a function

    function myalert(iVal){
    if (iVal) alert(iVal);
    }
  21. Replies
    4
    Views
    3,058

    if ( document.comp.email.value == "" || NEW...

    if ( document.comp.email.value == "" || NEW condition || ... )
  22. Replies
    2
    Views
    2,329

    ok. you might try using the DOM (...

    ok.

    you might try using the DOM ( getElementById() / getElementByTagName('param') )

    to access those values too.
    Giving each param an id=" "
  23. Thread: Count checkbox

    by Acey99
    Replies
    9
    Views
    18,116

    in regards to rocg23 on the JS output. chkCnt...

    in regards to rocg23 on the JS output.

    chkCnt is the number of checkboxes.

    yes PHP can do it as well, but sometimes why?

    USING $_POST[] or $_GET (Depends on what <form Method="" is

    ...
  24. Replies
    8
    Views
    4,361

    ok so if register_globals is off (which it should...

    ok so if register_globals is off (which it should be)
    use this at the top of the code to reload vars at their names (like register_globals = on does)



    <?php
    /*
    Reloads Cookies, Post vars, &...
  25. Thread: opening windows

    by Acey99
    Replies
    6
    Views
    3,472

    window.opener

    window.opener
Results 1 to 25 of 42
Page 1 of 2 1 2