document.write input type hidden will only pass string variable up to the first space
I have verified that the variable does indeed contain the whole address and I have also verified when I execute the following:
document.write ('<input type="hidden" name="address1" value='+address_1+'>');
the address_1 parameter passed to the php script only passes the string up to the first space.
I even tried to put fixed text in there instead of a variable (e.g.)
document.write ('<input type="hidden" name="address1" value="555 Drury Lane" >');
and it still only passes the string up to the first space (555).
I show the variable address_1 on my confirmation page and it shows the entire string.
All my other variables (which don't have spaces) pass to the php script with no problems.
I did a lot of searches but could not find any comprehensive solution to this particular issue. Any assistance would be appreciated.