Jump to content

awpti

Members
  • Posts

    459
  • Joined

  • Last visited

    Never

Everything posted by awpti

  1. First: Use str_replace(), it's far less intensive (cpu-wise)compared to ereg_replace() Second: Switch your GD account to PHP5 - no reason at all to continue with PHP4.x. You can do that in your control panel under Languages I tried your code on my own test site with GD and had no problems. Some changes: $optional_comment2 = str_replace("\\\'","'",$optional_comment2); //Where are you getting the triple \'s from? $optional_comment2 = str_replace("\n","<br />\n",$optional_comment2); $optional_comment2 = str_replace('"',""",$optional_comment2);
  2. My method of 'captcha' is to create an input field hidden via <code> <div style="display:none"> <input type="text" name="email" /> </div> If "email" has a value, you know it's a bot. Bots can't tell if a field is hidden or not. Just name your actual "email" field something else.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.