Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 256089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:59:06+00:00 2026-05-11T21:59:06+00:00

(First posting, so please be merciful if I’m off on some of the etiquette,

  • 0

(First posting, so please be merciful if I’m off on some of the etiquette, markup, etc. :))

Server-side:

iframe-contents.php:

<?PHP

if($_POST['test-post-parameter'] == 'test-post-value'){
echo 'test-post-parameter successfully detected as "test-post-value".';
} else {
echo 'test-post-parameter either absent or of a different value than "test-post-value". :(';
}
?>

OK, so lets say i request iframe-contents using

bash$ wget --post-data='test-post-parameter=test-post-value' -O - http://example.com/iframe-contents.php

The result would be:

test-post-parameter successfully detected as "test-post-value".

If, however, I requested it using

`bash$ wget -O - http://example.com/iframe-contents.php`

I would end up getting:

test-post-parameter either absent or of a different value than "test-post-value

Now – lets say I have another file on the server, called index.html:

<html><head><title>PAGE_TITLE</title></head>
<body>
<iframe width="100%" height="100%" src="iframe-contents.php" />
</body>

If I tried typing http://example.com/index.html into my browser, I would get PAGE_TITlE in my titlebar, with test-post-parameter either absent or of a different value than "test-post-value". :( in the body.

My question is this: How can I modify the iframe element so that I get?

test-post-parameter successfully detected as "test-post-value".

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:59:06+00:00Added an answer on May 11, 2026 at 9:59 pm

    You cannot. You can do it by using GET.

    With POST:
    Maybe only if you make a temporary .php page, that has a form with that post value, and a javascript script that automatically post the form and redirects you to the iframe-contents.php

    Something like this:

    temp-iframe.php

    <html><head>
    </head>
    <body onLoad="document.forms.myForm.submit()">
    <form name="myForm" id="myForm" method="POST" action="iframe-contents.php">
    <input type="hidden" name="test-post-parameter" value="test-post-value">
    </form>
    </body>
    </html>
    

    And in the iframe src you add the: temp-ifram.php

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please bear with me if this isn't clear, this is my first posting here.
This is the first time I am posting a question on stackoverflow, so please
First time posting a question on StackOverflow, so please go easy on me :)
First time posting, please let me know if this question has already been answered!
this is my first time on posting so if I have done anything please
This is my first time posting here, so please be kind ;-) EDIT My
first off i am a beginer in coding so please bear with me. i
First time posting, please bear with me. I'm trying to create a slideshow that:
first time posting here so be gentle :) On my web pages I have
first time posting in StackOverflow. :D I need my software to add a couple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.