Contact Us with Captcha - php Form

Author Topic: Contact Us with Captcha  (Read 16648 times)

Offline pedja

  • Supporter
  • **
  • Posts: 9
  • Karma: +3/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #15 on: June 28, 2010, 06:03:39 AM »


but the comments that sent this forms aren't formatted so in my email i receive comments in a single line
can you tell me how to send comments in this forms formatted in a paragraph?
thanks

Replace in maile.php line:
Code: [Select]
$headers='MIME-Version: 1.0' . "\r\n";

with:
Code: [Select]
$comments = str_replace("\n", "<br />", $comments);
$headers='MIME-Version: 1.0' . "\r\n";


Offline grigione

  • Supporter
  • **
  • Posts: 4
  • Karma: +3/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #16 on: June 28, 2010, 08:46:20 AM »
mmm exscuse me i.m badly explained
if i write  in form  a word without interruction  example :
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
in email return in this attacked  mode so searching in internet
 i have found correct function ie; wordwrap :
Code: [Select]
$comments = wordwrap($comments,39,"\n",true);
Can you tell me how to resolve the problem of accented characters ?
Thanks for answers

« Last Edit: June 28, 2010, 11:25:00 AM by admin »

Offline pedja

  • Supporter
  • **
  • Posts: 9
  • Karma: +3/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #17 on: June 28, 2010, 11:21:29 AM »
Code: [Select]
$comments = wordwrap($comments,39,"\n",true);
$comments = str_replace("\n", "<br />", $comments);
$headers='MIME-Version: 1.0' . "\r\n";

put it all together  :) :)

Offline grigione

  • Supporter
  • **
  • Posts: 4
  • Karma: +3/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #18 on: June 28, 2010, 01:14:45 PM »
ok thanks   ;) ;) ;)   
i have resolved also problem of accented characters with
Code: [Select]
$headers .= 'Content-type: text/html; charset=iso-8859-15' . "\r\n";
the form is perfect...
only a problem the symbol of euro €   show me as  ? question mark
any solution?
Another question It's possible add in this form aside from fields : name, email, comments, another field called url or website where users can insert their website url ?
thanks
« Last Edit: June 28, 2010, 06:48:45 PM by admin »

Offline grigione

  • Supporter
  • **
  • Posts: 4
  • Karma: +3/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #19 on: June 28, 2010, 01:22:06 PM »
ops accented resolved with
Code: [Select]
$comments = utf8_decode ( $_POST['comments']);
« Last Edit: June 28, 2010, 06:48:23 PM by admin »

Offline selur

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #20 on: September 25, 2010, 12:53:04 PM »
how shall i install it using dreamweaver cs5. explain the steps in detail please..