How do I carry input data over in an input variable to an imbedded site?

Glenn

Member
is it possible to carry over a post variable from one site to another if one site is embedded in the other? For example, if I have <input type="text" name="fname"> on site A and site B is embedded into A, can site B read the "fname"?
 

Edge

Member
What do you mean 'if one site is embedded in the other?' - can you give me an example of that?
If you mean within an iframe then it is to all intense purposes another site and if it did allow post variables from another site then it would be highly vulnerable.
 
Last edited:

Glenn

Member
Say for example, site B has the same form values as site A and you input the "fname" from site A
 

Glenn

Member
Is there another way to include one page into anothe that would workr? I know with earlier versions of php you could use a php include but not anymore.
 

chrishirst

Well-Known Member
Staff member
You can include the HTML from a remote URL, but BOTH servers/sites will need the backend code to accept the POST data.
 
Top