PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, November 30, 2022

[FIXED] how to put text inside the input of a page that i opened with iframe?

 November 30, 2022     iframe, php     No comments   

Issue

I need to open a page from another site on my site and add text in the inputs of that page, so I used iframe to open it, but I don't know how to add the text in the inputs. Can someone help me?


Solution

The only way to achieve this would be if the page you're loading in the iframe allows GET parameters to be passed in with the URL. The form elements on the target site would then have to use the values as default for them to be displayed on load.

E.g.:

https://target.com/?formFieldOne=hello

Then the code of the target page would have to be something similar to this:

<input type="text" value="<?PHP echo($_GET['formFieldOne']); ?>" />


Answered By - harrynorthover
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing