Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
104 views
in Technique[技术] by (71.8m points)

html - Passing value from site to iframe

I want to insert a calculator from another website into my website through iframe. There are dozens of products on my website, so I want this calculator to get price values automatically (now you have to manually change it). It should take the price value from the page and send it to the calculator, so the numbers are correct. Is it possible to automate this, if so how?

The code looks similar to this:

<iframe src="https://www.otherwebsite.com/calculator.php?layout=layout2&amp;clientid=client1&amp;price=3399&amp;action=0&amp;width=350&amp;height=150" scrolling="no" frameborder="0" style="border:0; overflow:hidden; width:350px; height:150px;" ALLOWTRANSPARENCY="true"></iframe>
question from:https://stackoverflow.com/questions/65875297/passing-value-from-site-to-iframe

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It was not possible to do with Simple IFrame Passing the GET Values.

You can try using PHP Form POST & GET method To retrieve the value or You can try with PHP CURL (If the another website is supported or allowed that action.)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...