Question

I have the following perl mason code:

% my $var = "San Diego";
<input type="text" value=<% $var %> disabled />

However, when I do this, the value of the textfield only gets set to the first word. So in this case, it gets set to "San". How can I fix this?

Was it helpful?

Solution

Try to enclose the value between double quotes

<input type="text" value="<% $concertCity %>" disabled />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top