plodos Posted April 19, 2009 Share Posted April 19, 2009 aaa@gmail.com 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? Quote 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(). Quote 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 Quote 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;) Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.