Hi Guys... I am working on a script to allow voting from a web page. I wish to use a double opt-in system to prevent spammers from fooling around. The idea is: 1. The voter fills in a voting form. 2. An email is sent to the email address that they have given. 3. The email contains a link back to the script. 4. The script then adds their details and votes to a database. I have everything working, except that when the email is sent to the voters email address, it breaks where there is a space. i.e. Name: John Craven The email link breaks after John and nothing else is covered withing the link. If anybody would like to see exactly what I mean, the site is: http://gvlmicro.co.uk/email-vote.php You can fill in the form and providing that you fill in your correct email address you will get an email with a link in it. You will see that the link breaks after your first name. If you then click on the link your will be asked to validate your email address again. The secong time the link comes back to you without a break, but ends where it broke previously and therefore with most of the required date missing. Any help will be appreciated. John C
I've found the solution. The problem is that URLs don't allow spaces in them. The solution is to run the string through urlencode e.g. $string=urlencode($string); Easy when you know how. Just a pity that it took me hours to find the answer. John C