Welcome to WebmasterWorld Guest from 184.108.40.206
In simple terms, I have a bunch of variables sent from a form on page1.
Page2 grabs these variables, and concatenates them like so:
$newstring = var1.var2."\"".$2wordvar."\"".var3;
$2wordvar needs to be enclosed in quotation marks. The idea then being to have $newstring as a form input variable like so:
<input type="text" name="title" value="<?php echo $newstring ?> " />
An example output would be:
23 57 "Hello World" 17
If I echo out the result it works perfectly, but not when I try to get it to populate the input field. It always stops where the first quotation mark would occur (in other words, in the case above only '23' would be output) or just omits the whole variable totally. For the record, magic quotes is enabled if that has anything to do with it.
Can anyone shed some light on this? It seems such a simple thing but it's driving me nuts!