How to display the current user ID in an input statement by default? how to display the current user ID in an input statement by default? echo & nbsp; 'document. write ("'. $ userid. '")'; the php output User ID can be read through js in html & lt how to display the current user ID in an input by default
How to display the current user ID in an input file by default
The username of the currently logged-on user can be read through a php file.
echo 'document.write("'.$userid.'")';
In html, you can use js to read the php output user ID.
《script》
However, if you want to open the current user ID directly on the page, it is displayed in the input box by default.
How can I help you to input javascript php html?
------ Solution --------------------
"/>
------ Solution --------------------
《script》
《script》
$(function(){
var a=
;
$("#abv").attr("value","a");
})
《script》
------ Solution --------------------
Reference:
Currently, neither of the two upstairs methods works.
《script》
《script》
$(function(){
var a='
';
$("#abv").attr("value",a);
})
《script》