tags:

views:

50

answers:

2

hi guys,

any help for this...

Code:

<a href = 'ymsgr:sendim?your_yahoo_id'>Send me a message</a>

How should i know if the email field is yahoo mail address?

+1  A: 

See if it matches a yahoo domain:

A simple implementation would look like this - it's not foolproof (matches [email protected]), but I don't think it has to be:

if (preg_match('/@yahoo\./i'))
Greg
thanks for the info...
+1  A: 

Hi,
you can use RegEx Patterns, to check the link for a yahoo e-mailadress.

Sample (Modified RFC 2822 Standard)

[a-z0-9!#$%&'+/=?^{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*@yahoo{1,1}?.a-z0-9?

Henrik P. Hessel
thanks for the info...