www.webdeveloper.com

Search:

Type: Posts; User: four0four

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    2,135

    Need to block this ASAP

    In my log files, I've been receiving thousands of requests that look like the following:



    "POST / HTTP/1.0" 200 18890 "-" The Incutio XML-RPC PHP Library -- WordPress/3.0.1"


    It's so bad...
  2. Replies
    1
    Views
    733

    Correct way to store a salt?

    I'm currently storing a random yet unique salt for each user in my database.

    What's the best practice for storing a salt? Can I just store it in the same database with the password hash and other...
  3. Replies
    1
    Views
    588

    Add element to all forms

    I'm trying to add an input element to all forms using appendChild.

    The script first searches for input elements with the name of "myinput".

    If it finds an input element with that name, it...
  4. Replies
    1
    Views
    631

    Break out of frames (cross-browser)?

    Is there a method for breaking out of frames that's truly cross-browser compatible?

    I've seen a ton of examples on how to do this, but I'm not sure which method works the best.

    Thanks!
  5. Replies
    18
    Views
    1,689

    This has turned into a very interesting (and...

    This has turned into a very interesting (and informative) discussion. :)

    If I understand correctly, JunkMale is saying that all input needs to be sanitized to guard against the unexpected because...
  6. Replies
    18
    Views
    1,689

    I'm using: if (isset($_POST['checkbox1']))...

    I'm using:



    if (isset($_POST['checkbox1'])) {
    //execute some code
    }


    and...
  7. Replies
    18
    Views
    1,689

    Form Security Question

    I'm trying to secure my forms by sanitizing all user input.

    However, one thing I'm still confused about is whether non-input elements need to be sanitized as well?

    For example, if I had a...
  8. Replies
    5
    Views
    1,130

    That's true. I guess I could take the same...

    That's true. I guess I could take the same approach with shapes?

    I could use squares, stars, and triangles...

    Would I have to store the correct combo using sessions? Or?
  9. Replies
    5
    Views
    1,130

    Simple CAPTCHA script

    How would I go about creating a simple "captcha" script that:

    Displays 8 colored squares, let's say from an array that has red, green, and black.

    It then displays these squares in a random...
  10. Replies
    1
    Views
    1,652

    jQuery - Submit Multiple Forms

    How can I use jQuery to submit multiple forms with different types, values, and actions?

    For example:


    <form name="form1" method="get" action="submit1.php">
    <input name="value1" type="text"...
  11. Replies
    6
    Views
    858

    Thank you very much! That works perfectly. One...

    Thank you very much! That works perfectly.

    One question...

    If I wanted to match a string that contains a space how would I do this?

    I used ^string$ to mark the beginning and end of my...
  12. Replies
    6
    Views
    858

    That's exactly what I'm looking for... The...

    That's exactly what I'm looking for...

    The only problem is that I want to use separate alternations, like:



    links = links.replace(/link 1\b|link one\b|link i\b/gi, test1);


    So that if...
  13. Replies
    6
    Views
    858

    I now have the following code: var...

    I now have the following code:



    var index=1;

    var test1 = (function(){
    return function(){
    return "<a href=\""+ (index++) +".html\">This is a link about apples<\/a>";}})();
  14. Thank you both very much! :)

    Thank you both very much! :)
  15. Regular expression to strip/remove content

    When using a regular expression, is it possible to strip/remove anything that appears after a string that it finds?

    For example, if I use:




    mystring = mystring.replace(/night/gi, "");
  16. Replies
    6
    Views
    858

    Assign numbers for each link

    Hi,

    If I have this regular expression that matches anything that contains the string "link":



    links = links.replace(/link\b/gi, "<a href=\"+ assigned link number goes here...
  17. Replies
    4
    Views
    770

    Thanks everyone for your help! :) It's fixed...

    Thanks everyone for your help! :)

    It's fixed now. I had the regular expressions in the wrong order.

    Thanks again!
  18. Replies
    4
    Views
    770

    Regular expression help

    Hi,

    I need help with a regular expression that replaces Roman numerals with numbers.

    How can tell the regular expression to match exactly what I specify?

    When I use the following:
  19. Replies
    1
    Views
    545

    Trim and format plain text

    I have the following script that converts line breaks from plain text into HTML formatted paragraphs. It takes plain text from one text area field and outputs the new formatted text into another text...
  20. Replies
    2
    Views
    558

    Is there a better way?

    I'm using the following script that changes/switches an icon that a user clicks on with another one to indicate that the icon is currently active.

    When another icon is clicked, the active icon is...
  21. Replies
    2
    Views
    772

    Thanks! :)

    Thanks! :)
  22. Replies
    2
    Views
    772

    [RESOLVED] Help with simple script

    Hi,

    I'm trying to fix a script that does a search for all links on a page and applies a display:none style to each one.

    Here's what I have so far:



    <html>
Results 1 to 22 of 22
HTML5 Development Center



Recent Articles