How to display the user ID of the currently logged in user by default in one input

Source: Internet
Author: User
How to display the user ID of the currently logged on user by default in one input
How to display the user ID of the currently logged on user by default in one input

The user name of the currently logged-in user can be read from one PHP
Echo ' document.write ("'. $userid. ') ';



In the HTML can be read through JS to this PHP output user ID

 


However, if you want the current user ID to be read directly to the page when it is opened, it is displayed by default in the box of input

What's the best way for you to ask the Boss? input javascript php html


------Solution--------------------

------Solution--------------------







------Solution--------------------
References:
There are two ways upstairs
.





  • 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.