User Profile

Collapse

Profile Sidebar

Collapse
xaxis
xaxis
Last Activity: Oct 5 '10, 08:36 AM
Joined: Feb 11 '09
Location: California, United States
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Now that you have clarified your initial question, I believe what you want to do is assign each check box in your form its own unique name. Then you could do something like create an array containing all the names of your checkboxes which is used it to iterate through each checkbox to check if a value has been set and if so, push that value into another array:

    Code:
    $boxArr = array('box1','box2,'box3'); // array containing names
    ...
    See more | Go to post

    Leave a comment:


  • From: http://us2.php.net/each "each — Return the current key and value pair from an array and advance the array cursor" ...

    $q13_contactMe is not an array. Thus your problem, your are not passing an array as an argument to each().
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to Charset decoding problem
    in PHP
    Very interesting indeed. Interesting enough that I scoured the net and I believe this resource: http://www.mozilla.org/projects/intl...Detection.html to be the most detailed and closest any person/group has yet come to solving this extremely challenging problem....
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to Generating unknown depth of nested for loops?
    in PHP
    Bravo! \(^_^)/

    Using the $chars string of desired characters as the depth level specifier in and of itself is quite ingenious!

    Thank you very much this will save me from copying and pasting many different for loops.
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to scroll the td of table
    ....
    <td style="overflow :scroll;"></td>
    ....
    or
    ....
    <td style="overflow-y:scroll;"></td>
    ....
    or
    ....
    <td style="overflow-x:scroll;"></td>
    ....
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to category management
    in PHP
    Perhaps you can be more specific? For instance, what do you mean by "control"?
    See more | Go to post

    Leave a comment:


  • If you want multi-level drop down menus and a high degree of cross browser support, you COULD use nothing but CSS. Using something like:

    Code:
    div#hiddenMenu {
        position:absolute;
        // positioned where you would like the div with the id 'hiddenMenu' to appear
        visibility:hidden;
        width:200px;
        height:200px;
        border:1px solid #000;
    }
    
    span#menuItem:hover > #hiddenMenu
    ...
    See more | Go to post
    Last edited by acoder; Feb 13 '09, 11:25 AM. Reason: Please use [code] tags

    Leave a comment:


  • xaxis
    replied to recycle password that hashed by md5 function
    in PHP
    Well, there is a way but the effort involved may not be worth your while (not to mention your computing resources 'while'.

    Using a hash table (excuse the pun) of precomputed hashes (say every possible alpha-num combination up to 9 characters - same as your password policy) that use the string that produced a given md5 hash item as its index/key, you could then compare the lost password hash with the precomputed hash table and the matching...
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to set POST using GET
    in PHP
    I'm simply curious, under what context are you needing/wanting to do this?
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to Generating unknown depth of nested for loops?
    in PHP
    You are most correct, a dedicated server is paramount. However I fully intend to make a "polite" crawler bot. Also, I to have not had any luck with such an algorithm, but it's okay because I realized I only need to produce a vast list of domains one time, and after that it will just be referenced in a database... So anyhow, thank you for your thoughts.
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to Generating unknown depth of nested for loops?
    in PHP
    You're absolutely right... I realized that I'm going to need to add a bit more intelligence when it comes to the generation of domains, such as dictionary list scrambles, common domain pre- and -post fixes, none the less I still have not been able to devise a way in which a recursive function can produce the same type of linear output that the plain old nested for loops do.... It's driving me semi-mad.

    My end purpose for this entire...
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to syntax errors
    in PHP
    HTTP Error 500 is kind of a catch-all error. It may or may not have anything to do with your PHP script. Do you have access to your webservers log files? Those would be extremely helpful in debugging this issue.
    If I were you I would set error_reporting () to E_ALL and work with your code until you're not even producing a mild warning so you can rule the code out as the culprit. If you get to this point you can be pretty sure that a server...
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to show image in small size
    in PHP
    If you are down sizing an image its "quality" will degrade no matter what simply because there will be fewer pixels/per area and thus less detail. It has been mentioned above, but you will indeed need to pay attention to the aspect ratio of the image.
    Indeed using HTML or CSS will resize your image however different browsers have certain compatibility quirks so I would recommend you re-sample the image with PHP in order to produce...
    See more | Go to post

    Leave a comment:


  • xaxis
    replied to Get Form Value Through JS
    If you reference the text field via:
    var someVar = document.getEle mentById("date" );

    To retrieve the value within just append .value:
    var someValue = someVar.value;
    or
    var someValue = document.getEle mentById("date" ).value;
    See more | Go to post

    Leave a comment:


  • xaxis
    started a topic Generating unknown depth of nested for loops?
    in PHP

    Generating unknown depth of nested for loops?

    Context: I'm working on a function that generates domain names. For instance, if I want to generate every possible domain name with 3 alpha characters, I've been doing something like this:

    Code:
    $alpha = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
    $numeric = array('0','1','2','3','4','5','6','7','8','9');
    $condition = 'alpha';
    $hyphen = FALSE;
    ...
    See more | Go to post
No activity results to display
Show More
Working...