Welcome Guest, Not a member yet? Register   Sign In
Passing Array to Views not Parse White Spaces
#1

[eluser]pmsfo[/eluser]
Hi I am Passing Array Values to Views, but there is problem in the textbox redering the views.

Whe I pass An Array to The views, if in the array there is i field with the values

Field =>'example dot'

on the text box of the view only shows 'example', it does not put the value 'example dot'

it's like thar loses the all values from the with space to the right.

in the view pass the values like this :

<input type="text" name="txtParecer" id="txtParecer" disabled="disabled" value =<?= $dados['parecer']['Descricao'] ?>>

Can you Help me Out Solving this Question.

Best Regards
#2

[eluser]danmontgomery[/eluser]
value needs to be surrounded with quotes

Code:
value="<?= $dados[‘parecer’][‘Descricao’]; ?>"
#3

[eluser]pmsfo[/eluser]
It Worked .

Thank You very much it was my mistake. I forgot the double quotes.

http://www.newitperson.com/




Theme © iAndrew 2016 - Forum software by © MyBB