I have a form, that submits to a db the data i put in the input text box. However lets say i write "yoda is the man" it will update the db to say "yoda is the man" in the correct field however when i go back to the input where i have the value set to = the value of the field in the db it will only say yoda
What can i do to fix this?
Thank you Anthony
Without seeing your code it it hard to tell. I would guess you need to put quotes around your value.
So, instead of <input type=text value=$stuff>
You need to use <input type=text value="$stuff">
Well my code is $ouput = "<input type=text name=yoda value=".$yoda.">";
So how might i go about chainging that?
Keep in mind i have to keep it $output =
$ouput = "<input type=text name=yoda value=\"$yoda\">";
Using the backslash escapes the quote so that what you end up with is $output containing:
<input type=text name=yoda value="the contents of yoda variable">