File Upload http://www.formmail-maker.com/forum/index.php?p=/categories/file-upload/feed.rss Thu, 14 Dec 17 12:09:40 -0500 File Upload en-CA My form runs on HTTPS, but reCaptcha security image doesn't appear in Chrome, why? http://www.formmail-maker.com/forum/index.php?p=/discussion/169/my-form-runs-on-https-but-recaptcha-security-image-doesnt-appear-in-chrome-whys Thu, 20 Jun 2013 12:25:46 -0400 Form User 169@/forum/index.php?p=/discussions Your form is running on HTTPS (SSL) layer, but the reCaptcha security image uses normal HTTP protocol, so the image is blocked by Chrome. You have to use HTTPS for reCaptcha security image.

Edit form.lib.php, replace this line of code:

function phpfmg_show_captcha(){
    if( phpfmg_is_reCAPTCHA() ){
        echo recaptcha_get_html(reCAPTCHA_PUBLIC_KEY);
        return ;
    };
    $url = PHPFMG_ADMIN_URL . '?mod=captcha&func=get&tid=' ;
    $onclick= "onclick=\"document.getElementById('phpfmg_captcha_image').src='{$url}'+Math.random();return false;\" " ;
    echo "<a href='http://www.formmail-maker.com' {$onclick} title=\"Free Mail Form Tool\"><img id=\"phpfmg_captcha_image\" src=\"". $url . time() ."\"  border=0 style=\"cursor:pointer;\" alt=\"Click the image to reload. PHP FormMail Generator at http://phpfmg.sourceforge.net\"></a>\n";
    echo "<a href='http://phpfmg.sourceforge.net' {$onclick} style=\"color:#474747;\" title=\"Reload PHP FormMail Generator Security Image\" >Reload Image</a><br>\n";
    echo "<input type='text' name='fmgCaptchCode' value='' class='fmgCaptchCode' style='width:73px;' >\n";
}


With : 

function phpfmg_show_captcha(){
    if( phpfmg_is_reCAPTCHA() ){
        echo recaptcha_get_html(reCAPTCHA_PUBLIC_KEY, null, true);
        return ;
    };
    $url = PHPFMG_ADMIN_URL . '?mod=captcha&amp;func=get&amp;tid=' ;
    $onclick= "onclick=\"document.getElementById('phpfmg_captcha_image').src='{$url}'+Math.random();return false;\" " ;
    echo "<a href='http://www.formmail-maker.com' {$onclick} title=\"Free Mail Form Tool\"><img id=\"phpfmg_captcha_image\" src=\"". $url . time() ."\"  border=0 style=\"cursor:pointer;\" alt=\"Click the image to reload. PHP FormMail Generator at http://phpfmg.sourceforge.net\"></a>\n";
    echo "<a href='http://phpfmg.sourceforge.net' {$onclick} style=\"color:#474747;\" title=\"Reload PHP FormMail Generator Security Image\" >Reload Image</a><br>\n";
    echo "<input type='text' name='fmgCaptchCode' value='' class='fmgCaptchCode' style='width:73px;' >\n";
}

Save the form.lib.php file, and upload it back to your server. It should work.
]]>
My form can't upload large size files, please help? http://www.formmail-maker.com/forum/index.php?p=/discussion/25/my-form-cant-upload-large-size-files-please-helps Sun, 22 Apr 2012 23:13:31 -0400 admin 25@/forum/index.php?p=/discussions php.

The php default value of
upload file size limitation is 2M.  If you want your web form uploading large size files, you have to change memory_limit, post_max_size  and upload_max_filesize 
variables in php.ini file . Those variables can  ONLY be set on server side file php.ini. Here the example :

;Maximum amount of memory a script may consume
memory_limit = 40M 

; Maximum size of POST data that PHP will accept.
post_max_size = 40M

; Maximum allowed size for uploaded files.
upload_max_filesize = 10M

please change the values of above variables as needed.

If you use a shared hosting server, and you can't edit the php.ini file, please contact your
hosting tech support.




]]>