I have I'm working on a ladder script and it's setup so when some regisiters they have are sent a comfirm email, they click on a link in the email which then take them to a page where they are comfired as the person joining.
The problem is if a new user uses a two part name I.E john doe, the link in the email is broken.
What do I need to do to fix the link.
mail("$mail", "Confirm Registration", "Thank you for joining $leaguename,\n Your username is: \n\n$name\n
Please confirm you wish to take part in this league by clicking here $directory/confirm.php?username=$name&randid=$randid /n/n $directory /n/n/ - Happy Gaming!", "From:Euro-Flashpoint-League.com");
Heres the email you get.
Thank you for joining Euro-Flashpoint-League,
Your username is:
The Platoon AC
Please confirm you wish to take part in this league by clicking here [url]http://www.euro-flashpoint-league.com/league/confirm.php?username=The[/url] Platoon AC&randid=WIastiRE /n/n [url]http://www.euro-flashpoint-league.com/league[/url] /n/n/ - Happy Gaming!
Any help please?