dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Taschen

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. If your DB was correctly setup (ie using "NULL"...

    If your DB was correctly setup (ie using "NULL" as appropriate) than you can simple use MySQL's onboard check for empty fields


    $query="SELECT fieldId FROM table WHERE fieldName IS NULL"

    This...
  2. You are unlikely to ever succeed in sending bulk...

    You are unlikely to ever succeed in sending bulk mail in the way you are trying - especially not if your web host has correctly configured it's mail server.

    For each "mail" you send you are...
  3. Replies
    2
    Views
    894

    Like this: publish a resource in XML. Now use JS...

    Like this: publish a resource in XML.
    Now use JS (or better still a proper language - like English) to access the URI.
    XSS no longer an issue.
  4. Replies
    3
    Views
    1,077

    Right... not exactly helpful, just smugness gone...

    Right...
    not exactly helpful, just smugness gone wild.
  5. Replies
    3
    Views
    1,017

    Think of web balancing like running a hotel......

    Think of web balancing like running a hotel... you have reception (a gateway or single point of entry) and from there you allocate rooms or space/bandwidth.

    Allocating "space" according to...
  6. Replies
    2
    Views
    974

    Yes. But why? This requires specialist hardware...

    Yes. But why?
    This requires specialist hardware - so completly defeating the mobile nature of the web.

    Oh, and a finger print scanner can be fooled using jelly!
  7. Replies
    6
    Views
    1,285

    You can't. IE -7 doesn't deal well with...

    You can't. IE -7 doesn't deal well with transparencies.
  8. Replies
    5
    Views
    863

    Don't waste your time

    As Kiwibrit pointed out, if it's sent to the browser it can be viewed (er, that's the point after all). Investing time in methods to secure a stylesheet or similar are pointless and futile...
  9. Replies
    19
    Views
    1,794

    You probably don't need to change much......

    You probably don't need to change much... whenever you accept the POST or GET variables send them straight to your cleaning function which will then return an array with exactly the same key-value...
  10. Replies
    19
    Views
    1,794

    The basic routine when accepting user input is:...

    The basic routine when accepting user input is:
    1st clean any input
    2nd process input

    A very simple script is


    function scrubber($in){
    $bad = array('(',')', '<', '>'); // We don't want...
  11. Replies
    19
    Views
    1,794

    The first bit of code I injected didn't work....

    The first bit of code I injected didn't work. Basically I tried to use an image tag to display a javascript alert.

    The second bit of code uses a variety of escaped and unescaped characters and...
  12. Replies
    19
    Views
    1,794

    You will need to delete the entry but I won't...

    You will need to delete the entry but I won't touch the data base. If that's OK please say.
  13. Replies
    19
    Views
    1,794

    If you don't mind me demonstarting on your site I...

    If you don't mind me demonstarting on your site I can show you what XSS is.

    Mitigating against an XSS or MySQL attack is relatively straight forward and centres around taking the POST or GET...
  14. Replies
    19
    Views
    1,794

    You weren't spammed someone tried a cross site...

    You weren't spammed someone tried a cross site scripting attack (XSS exploit) which worked!
  15. Replies
    19
    Views
    1,794

    You need to do some serious cleaning routines on...

    You need to do some serious cleaning routines on user input. Your presentation may be cute but if you are intending to offer this for download you will also have to think of security!
  16. Replies
    33
    Views
    3,576

    @Biznessman 1. All UK/EU businesses trading...

    @Biznessman

    1. All UK/EU businesses trading online must display information such as a VAT number, terms of trading, a (physical) contact address (not PO box), a contact name, and it is good...
  17. Replies
    6
    Views
    914

    Until recently CAPTCHAS were reasonably succesful...

    Until recently CAPTCHAS were reasonably succesful methods to block robots from completing and submitting web forms. However, it is clear that the majority of CAPTCHAS have now been broken (and those...
  18. Replies
    1
    Views
    5,072

    The function foreach() is used to iterate over a...

    The function foreach() is used to iterate over a single dimension of an array (repeatedly perform a function on one level of an array).

    If you wish to access multipul dimensions you will need to...
  19. Replies
    2
    Views
    777

    Store any variables (such as filenames) which you...

    Store any variables (such as filenames) which you wish to persist in a $_SESSION[''] variable. Have a look at www.php.net for more information on session vars.

    A basic example would be (in the...
  20. Replies
    4
    Views
    1,141

    Never a bad idea anyway. For the reasons given...

    Never a bad idea anyway.

    For the reasons given in "1" never trust user input, always clean and validate before sending to the db layer. Part of this is being aware of input lengths.
  21. Thread: CSS Calendar

    by Taschen
    Replies
    5
    Views
    1,083

    I couldn't see the problem when I looked at the...

    I couldn't see the problem when I looked at the link above but it could be the old IE6 "disappearing text bug"

    Stick this in your style sheet:
    * html {height: 1%;} /*This is a hack to stop...
  22. A handy addition to the mysql : query or...

    A handy addition to the mysql : query or die(error message) is the php mysql_error function
    http://uk2.php.net/mysql_error
    mysql_query($query) or die('Error, insert query failed <br...
  23. Replies
    2
    Views
    856

    Have a look at this first and see if it gets you...

    Have a look at this first and see if it gets you anywhere...
    http://www.php.net/pdf
  24. Replies
    6
    Views
    864

    Send the responses to a database, this will also...

    Send the responses to a database, this will also make formatting easier, and your admin department can be given access as they need it.
  25. You'll need to pass some values if your sending a...

    You'll need to pass some values if your sending a header/location as referrer won't work (I think)...
    Try this:
    $clean['p']=ctype_digit($_GET['p']);
    Header("Location:...
Results 1 to 25 of 175
Page 1 of 7 1 2 3 4
HTML5 Development Center



Recent Articles