value attribute for input box shows partial value


#1

Hi everyone,
The following code is aimed to show “aaa aaa” as default value for input box in a form:
[php]<?php //xxx.php
$db = mysqli_connect(‘localhost’, ‘’, ‘’, ‘’);
?>

> [/php] When I run it, the default value in the "value" attribute for the input box shows "aaa". Can anyone explain me why? Why doesnt the the default value inserted to "value" attribute as "aaa aaa" sohow "aaa aaa"?! Thanks !

#2

You already have asked this and gotten an answer - https://www.phphelp.com/forum/beginners-learning-php/php-editing-value-doesn’t-fully-shows-the-original-value/


#3

Thanks. On second assessment, problem solved.