Insert value into a text box which is inside an echo statement?

Concatenation is a pretty easy way to go about this: echo.

Concatenation is a pretty easy way to go about this: echo '' edit: Those spaces around the concatenation . 's (. $foo . ) aren't required - I just add them fore readability.

Excellent! Thanks a lot, I shall mark it as accepted in 12 mins when I can – J Bellamy Nov 9 at 18:25.

I think the problem is you are using single quotes, so variables are not rendered automatically... you can concat with . Like this: echo 'some text' . $variable .'some more text.

1 +1 for giving the reason why it didn't work. – Kolink Nov 9 at 18:26 That works, thanks – J Bellamy Nov 9 at 18:27 so, should I generally use the double quotes? – J Bellamy Nov 9 at 18:27 1 @JBellamy It's both a matter of taste and dependent on what you're doing.

If you have anything relatively complex to do, mixing strings with variables, you should really look into sprintf(). Otherwise you'll rarely find a case where concatenation or double quotes are significantly superior to each other. Double quotes are nice in cases such as echo "My name is $name, I'm $age years old!";, but when strings contain a lot of double quotes already, I find it gets ugly.

– Steve Adams Nov 9 at 18:41.

Echo '" />'; acutally you don't need the php echo .... stuff.... /* brain not engaged.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions