plodos Posted April 19, 2009 Share Posted April 19, 2009 [email protected] I want to release aaa@ I want to get gmail.com after the email registration, script will re-direct the user to the gmail or hotmail page to confirm email address.but which function will I use to seperate email domains? Link to comment https://forums.phpfreaks.com/topic/154736-solved-for-ex-agmailcom-how-to-release-aand-take-gmailcom/ Share on other sites More sharing options...
Pawn Posted April 19, 2009 Share Posted April 19, 2009 You should perform proper email validation, which will get you that variable as a by-product. I use this. Edit: For future reference, you would use strstr(). Link to comment https://forums.phpfreaks.com/topic/154736-solved-for-ex-agmailcom-how-to-release-aand-take-gmailcom/#findComment-813712 Share on other sites More sharing options...
kenrbnsn Posted April 19, 2009 Share Posted April 19, 2009 Use list and explode <?php list($username,$domain) = explode('@',$email); ?> Ken Link to comment https://forums.phpfreaks.com/topic/154736-solved-for-ex-agmailcom-how-to-release-aand-take-gmailcom/#findComment-813719 Share on other sites More sharing options...
plodos Posted April 19, 2009 Author Share Posted April 19, 2009 Use list and explode <?php list($username,$domain) = explode('@',$email); ?> Ken I used that list($username,$domain) = explode('@',$email); echo "<script language=javascript>"; echo " window.location='http://www.".$domain."/'; "; echo "</script>"; thanks for everything;) Link to comment https://forums.phpfreaks.com/topic/154736-solved-for-ex-agmailcom-how-to-release-aand-take-gmailcom/#findComment-813732 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.