check the values contained in $editid, $content[] var.
for any "simple" but forbidden character. I think especially
at space character, ' ; ' character and so on.
Where exactly the URL seems to be cut ?
Have you print individually the var. to check their content ?
Hervé.