Skip to content
Advertisement

Only getting a portion of text on edit function php

Here’s my code first

JavaScript

on my HTML

JavaScript

and on my JS

JavaScript

I have this data

enter image description here

Now the problem is that whenever I tried to edit data it’s only getting the portion of a text like this

enter image description here

I am stuck to why I am only getting a portion of a text. Someone, please enlighten me.

Advertisement

Answer

Looks like you need to quote the output of $user->name in the HTML.

e.g

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement