Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119618

vinaysudhir on "[Plugin: WP User Frontend] custom field url validation"

$
0
0

Hi Tareq Hasan,
I add a custom ext box and labeled it URL but by default the only validation criteria available is
"A validation criteria. User must provide input in that field"
But it is not sufficient for domain name or URL validation,

something like this may be good to validate
/**<?php

function checkdomainname($Domainname)
{
if(getmxrr($Domainname, $MXHost))
{
return TRUE;
}
return FALSE;

}

?> **/
this I found in google,but dont know how to add to plugin.

I seen the URL is saved in cf_URL in post meta of db,
I just want to validate the URL or Domain name before it is saved in db.

So that only valid domains or URLs will be saved.

Could you please tell me how to validate the domain names using WP User Frontend: Custom Fields

thank you.

http://wordpress.org/extend/plugins/wp-user-frontend/


Viewing all articles
Browse latest Browse all 119618

Trending Articles