We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Autofill forms

Luv2Muff
Luv2Muff asked
on
Medium Priority
246 Views
Last Modified: 2012-05-11
I have a webpage that loads a form from another website in an iframe.

Is it possible to search for form labels such as "username" and autofill the input box?
Comment
Watch Question

Consultant & Challenge Subduer
CERTIFIED EXPERT
Top Expert 2009
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
Well, if I understand the question correctly, you can just store the username in a session-variable. That way, you can reach it from every page on the site.

If you have a variable with the username called $username then you could say:
session_start();
$_SESSION['username'] = $username;

Open in new window


Now you can get that username on the other site like this:
session_start();
echo $_SESSION['username'];

Open in new window


More on sessions here:
http://www.tizag.com/phpT/phpsessions.php

//Scifo_dk
Mohamed AbowardaSenior Software Engineer
CERTIFIED EXPERT

Commented:
If you want to access DOM elements inside Iframe from the parent, take a look here:
http://www.codingforums.com/showthread.php?t=29923

Author

Commented:
Thanks thanks, hope you are wee.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.