How to display the current user ID in an input file by default?

Source: Internet
Author: User
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》

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.