The problem: I have a form - the users fill in the fields and send it - the input is validated and if there is any faults a messege tells them what fields to correct and they can go back to the form using an URL - in the URL all the info that the user entered is included in attributes so that the form will be intact when they return (otherwise all the fields would be blank). That works ok IF NOT THERE IS ANY SPACE CHARACTERS in the data - if so the data is truncated!!! Example: Name = "Joe Hill" will be Name = "Joe"
Any ideas???????
For once I can give the answear myself! I deal with the problem with this little function:
function FixSpace($string) {
$letterarray = explode(' ',$string); $fixadstring = implode('%20',$letterarray); return $fixadstring;
}
... and then there is the correct way - use urlencode() and urldecode()!!!
Gad! I really SHOULD read that manual!