How to assign array value to textarea in smarty php [Solved] -


I have a form where I have to edit this information. I can edit all the fields except the description. Why does textarea not accept dynamic array values? this is my problem. Please help me fix this. thank you in advanced..

  & lt; Form id = "commentForm" name = "commentForm" action = "index.php? Mdf = addbiography" method = "POST" enactepe = "multipart / form-data" & gt; {If $ admindetails [0] .name neq ''}} & lt; Input type = "hidden" id = "action" name = "action" value = "saveupdate" & gt; & Lt; Input type = "hidden" id = "upid" name = "upid" value = "{$ admindetails [0] .id}" & gt; {Else} & lt; Input type = "hidden" id = "action" name = "action" value = "add_biography" & gt; {/ If} & lt; Article class = "module width_full" & gt; & Lt; Header & gt; & Lt; H3 style = "color: white;" & Gt; & Amp; Nbsp; & Amp; Add Biography & lt; / H3 & gt; & Lt; / Header & gt; & Lt; Div class = "module_content" & gt; & Lt; Fieldset & gt; & Lt; Div & gt; & Lt; Label & gt; Name & lt; Span class = "star" & gt; * & Lt; / Span & gt; & Lt; / Label & gt; & Lt; Input type = "text" id = "cname" name = "name" class = "required" value = "{$ admindetails [0] .name}" & gt; & Lt; / Div & gt; & Lt; / Br & gt; & Lt; / Br & gt; & Lt; / Br & gt; & Lt; Label & gt; Details: & lt; Span class = "star" & gt; * & Lt; / Span & gt; & Lt; / Label & gt; & Lt; Textarea cols = "60" rows = "5" type = "text" class = "required" name = "description" id = "description" value = "{$ admindetails [0] .description}" & gt; & Lt; / Text field & gt; & Lt; / Br & gt; & Lt; / Br & gt; & Lt; / Br & gt; & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Br> & Lt; Div & gt; & Lt; Label & gt; Type & lt; Span class = "star" & gt; * & Lt; / Span & gt; & Lt; / Label & gt; & Lt; Select name = "type" id = "type" & gt; & Lt; Option value = "personal" & gt; Individual & lt; / Options & gt; & Lt; Option value = "professional" & gt; Business & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; / Br & gt; & Lt; Div & gt; & Lt; Label & gt; Image & lt; Span class = "star" & gt; * & Lt; / Span & gt; & Lt; / Labels & gt; {If $ admindetails [0] .image eq ''} & lt; Input type = "file" name = "file" id = "file" style = "margin-left: 10px;" Accept = "image / *" class = "required" value = "" & gt; {Else} & lt; Input type = "file" name = "file" id = "file" style = "margin-left: 10px;" Accept = "image / *" value = "" & gt; {/ If} & lt; / Div & gt; & Lt; / Br & gt; & Lt; Img src = "upload / {$ admindetails [0] .image}" width = "300" height = "300" alt = "" & gt;  

  & lt; / Field & gt; & Lt; Div class = "clear" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Footer & gt; & Lt; Div class = "submit_link" & gt; & Lt; Input type = "submit" value = "save" & gt; & Lt; Input type = "reset" value = "reset" & gt; & Lt; / Div & gt; & Lt; / Footer & gt; & Lt; / Article & gt; & Lt ;! - End of data article - & gt; & Lt; / Form & gt;  

Do you try to do this ..

  & lt; Textarea cols = "60" rows = "5" type = "text" class = "required" name = "description" id = "description" & gt; {$ Admindetails [0] .description} & lt; / Textarea & gt;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -