Quantcast
Channel: Topic Tag: contact-form | WordPress.org
Viewing all articles
Browse latest Browse all 5994

Muhammad Muhaimin on "[Plugin: Sweet Captcha] Allow new line and multiple spaces for SweetCaptcha Contact Form"

$
0
0

When someone uses SweetCaptcha Contact Form, the message is sent with single spaces between each words and no new line.

So I edit sweetcaptcha-contact-form.php at line 245:

before:
$_REQUEST['swtcptcf_contact_message']
after:
str_replace( " ", "&nbsp;&nbsp;", str_replace( "\n", "<br />", $_REQUEST['swtcptcf_contact_message'] ) )

Now sent messages are easier to read, especially about the new line character, people usually input it, like in this forum.

http://wordpress.org/extend/plugins/sweetcaptcha-revolutionary-free-captcha-service/


Viewing all articles
Browse latest Browse all 5994

Trending Articles