Check for URLs - SPAM prevention
Last updated on
30 April 2025
if ( stripos($form_values['submitted_tree']['notes_or_comments'], "http") ) {
form_set_error('notes_or_comments', 'Please do not include links to websites in your submissions.');
}
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion