DIGIT-ARC read-only archive · snapshot: July 23, 2026

autofill username/password popup from a php script

3 posts · originally from https://geek.digit.in/community/threads/autofill-username-password-popup-from-a-php-script.148800/

A
abhijeet2021 Original post #1
Nov 15, 2011 at 7:29 PM
HI

we got a internal site which pops up a window to autofill username/password. That page is made in jsp. Now i got a php script to get the data from that site. Problem is i need to bypass the pop window or else it gives me auth errors. I already have username/password with me.
Garbage
Garbage #2
Nov 15, 2011 at 8:32 PM
Assuming you have username in $username and password in $password variables:

<form action="login.php">
Username: <input type="text" value="<?php echo $username ?>" name="username" />
Password: <input type="text" value="<?php echo $password ?>" name="password" />
<input type="submit" />
</form>
A
Nov 16, 2011 at 3:26 PM
think you got my question wrong. nvm i had to use curl functions to get it done within php. will post the code later