value attribute for input box shows partial value

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 !

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/

Thanks. On second assessment, problem solved.

Sponsor our Newsletter | Privacy Policy | Terms of Service