php - Send POST data to iframe and host page -


i have problem sending data form iframe page. have host page called form , form using post method works. trying send same post data in iframe.

<iframe src="dirread.php?var=<?php echo urlencode($_post['filename']);?>"  width="300px" height="700px" scrolling="yes"> 

so works 1 want send 2 lots

 <iframe src="dirread.php?var=<?php echo urlencode($_post['filename'],$_post['site'] );?>"  width="300px" height="700px" scrolling="yes"> 

what correct syntax please?

you sending post-parameters get-parameters iframe. send 2 variables have use:

<iframe src="dirread.php?var=<?php echo urlencode($_post['filename']); ?>&var2=<?php echo urlencode($_post['site'] );?>"  width="300px" height="700px" scrolling="yes"> 

there no way send post data inside iframe.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -