Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
p01-contact : simply add contact forms in your pages
#21
Ok,

I'have 3 problem .

1 error php strict, the var $error, in function check_form_content, in p01-contact is not initialized.

replace in lg 169
Code:
function check_form_content($form_data)
{
    foreach($form_data['fields'] as $name => $value) {


by
Code:
function check_form_content($form_data)
{
    $error=array();
    foreach($form_data['fields'] as $name => $value) {

2 in my page, I have just form, and i look source:
Code:
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="description" content="(% contact : xxxx@oscim.xxx , nocaptcha, %)" />
the mail is visible

3 and encoding,

Your encode/decode several times. And it's bug..
And this page is encoding in utf-8. So not use utf8_encode

For me, in lg ~130
Code:
//         $forms_data[$form_id]['fields'] = stripslashes_r(htmlentities_r($_POST['contact']));
        $forms_data[$form_id]['fields'] = stripslashes_r(($_POST['contact']));

And

lg ~ 329
Code:
//     $fields  = utf8_encode_r($form_data['fields']);
    $fields  = $form_data['fields'];

lg 333
Code:
//     $subject = '=?UTF-8?B?' . base64_encode($fields['subject']) . '?=';
    $subject = '=?utf-8?q?' . $fields['subject'] . '?=';

It's ok Smile

I'm test in french .

PS , the sender did not have a copy ?
Reply


Messages In This Thread
askcopy syntax Not Working - by celextel - 2019-05-24, 01:54:40
RE: askcopy syntax Not Working - by celextel - 2019-05-28, 01:51:47
p01-contact : simply add contact forms in your pages - by oscim - 2010-10-12, 03:01:18



Users browsing this thread: 4 Guest(s)