WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
custom field url validation (1 post)

  1. vinaysudhir
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic