Contact Us with Captcha - php Form

Author Topic: Contact Us with Captcha  (Read 17740 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..

Offline chiefkpokpo

  • Supporter
  • **
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #21 on: May 18, 2012, 05:48:45 AM »
Thanks for sharing this, i have already download and saved it, but my problem is that because i am new to php but by God grace i will get to the stage i want to become in life, I love using php in building websites but i am not perfect at it, I kept looking for someone to help me with contact us form and registration forms, and this i can't continue asking someone to help me, thanks to you all in the forum, I just signd up now and i hope to be happy with you people and be coming regularly to learn from here. Please this contact us form, i really dont understand it, what if i am using dreamweaver cs4, and i have a page, maybe for example named as contact-us.php   how do i insert this contact us form folder, because they seems to be different  as they have config, and others.... please help me out sirs and i will be greatful

Offline janos

  • Contributor
  • *****
  • Posts: 43
  • Karma: +3/-0
    • View Profile
Re: Contact Us with Captcha
« Reply #22 on: May 18, 2012, 07:35:06 AM »
 Hi chiefkpokpo, try with this script. http://phpform.net/board/free-php-scripts/contact-us-2-0/msg642/#msg642

Code: [Select]
<iframe width="500px" height="350px" src="http://www.website.com/contact_us/contact.php">
</iframe>