Title: php newb wp-comments-post.php
Last modified: August 20, 2016

---

# php newb wp-comments-post.php

 *  [strasse](https://wordpress.org/support/users/strasse/)
 * (@strasse)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/php-newb-wp-comments-postphp/)
 * Hellow,
 * I want to insert a html url into the error warnings if you misfill your email
   or leave commentfield blank
 * so i had like this :
 *     ```
       if ( get_option('require_name_email') && !$user->exists() ) {
       	if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 
   
       	wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).')  );
       		echo '<a href="https://twitter.com/angela_bradley">My Twitter</a>';
   
       	elseif ( !is_email($comment_author_email))
       		wp_die( __('<strong>ERROR</strong>: please enter a valid email address. ') );
       ```
   
 * where _echo ‘[My Twitter](https://twitter.com/angela_bradley)‘;_ is my attempt
 * what do I do wrong?

The topic ‘php newb wp-comments-post.php’ is closed to new replies.

## Tags

 * [wp-comments](https://wordpress.org/support/topic-tag/wp-comments/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [strasse](https://wordpress.org/support/users/strasse/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/php-newb-wp-comments-postphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
