Jump to content

Trimming an email address


zonkd

Recommended Posts

I've a list of email addresses that I want to publish on a website. I want to extract the name before "@", then split it into two, and cap the first letter of both.

I plan to show the name and have it as a mailto with the address, of course,  in an <a href> situation.

Be very grateful for some guidance.

Cheers all

paul

Link to comment
https://forums.phpfreaks.com/topic/61513-trimming-an-email-address/
Share on other sites

Fenway, genius says the label. May I borrow a little of it, please?

 

What I don't follow is how I would use this. I have a mysql select that puts the email address onto the page. Something like ...

 

 

$result = mysql_query("SELECT email_address, etc etc FROM etc WHERE etc");

 

 

Where would your code go here, please?

 

I know this is very basic, but I can't decide if you mean it should go round the record name or to be declared separately.

 

Hopefully

paul

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.