Jump to content

PHP website windows username fetch uysing AUTOIT - (Moved)


Recommended Posts

Hi All

 

I know AutoIt takes windows username easily using @username

 

All is well  but I have PHP page where a textbox I have. I need to fetch there windows loggedin user 

 

I am unable to make it so if AUTOIT can help me in this regard?

 

below is my code of HTML TEXTBOX taking PHP value using getenv which does not bring client username. Is it doable using autoit in TEXTBOX VALUE?

 

<label>Applicant Name:</label><b><label style="float:right;">اسم صاحب الطلب</b></label>
                    <br />
                    <input class="input" type="text" name="name" value="<?php echo getenv("username");?>"  readonly/>
                    <br />
                    

See screenshot please how my username comes in text box but when I access my URL fomr client PC same my username shows to him I need fetch his WINDOWS username

Help appreciated

 

Thanks

user.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...