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

  • Home
  • SEARCH
  • 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 4058462
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:04:57+00:00 2026-05-20T15:04:57+00:00

.I have a div tag that is also divided into two divs. here is

  • 0

.I have a div tag that is also divided into two divs. here is the code:

<div>
<div id="search">
<form id="try" method="post">
Batch: <input id="batch" name="batch" type="text"/>Dept: <input id="dept" name="dept" type="text"><input type="submit"/>
</div>
<div id="receiver">

</div>
</div>

I have placed a search option in the div named “search” using post method. what i want to do is that when i click the submit button the page to receive the values will appear on the div named “receiver”.

is this possible? if it is, please help..

  • 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-20T15:04:58+00:00Added an answer on May 20, 2026 at 3:04 pm

    The ways you have for this are:

    1 – The simplest – instead of a div – use an IFrame like this

    <div id="search">
      <form id="try" method="post" target="receiver" action="url-to-server-Page">
         Batch: <input id="batch" name="batch" type="text"/>
         Dept: <input id="dept" name="dept" type="text" />    
         <input type="submit"/>
      </form>
      </div>
      <iframe name="receiver" id="receiver"></iframe>
    </div>
    

    The disadvantage in this case is that the search-result that come in this case from url-to-server-page – is a complete and independent HTML page that is nested in your search page.
    It is not effected by styles of the parent page, and the communication between them for JavaScript operations is rather combersome.

    2 – with some JavaScript skills you can use AJAX.
    There are many libraries on the net that can help you do it in very few lines of code.
    jQuery is the simplest, although it’s the one I like least…
    http://jquery.com/

    3 – use a full round-trip

      <div id="search">
        <form id="try" method="post" target="receiver" action="url-to-server-Page">
           Batch: <input id="batch" name="batch" type="text"/>
           Dept: <input id="dept" name="dept" type="text" />    
          <input type="submit"/>
        </form>
        <div id="receiver">
            <?php if (isset($_POST['batch']) && isset($_POST['dept'])){
                      //display search results here.
                  }
            ?>
        </div>
     </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div with two nested divs inside, the (float:left) one is the
I have a form with a style input box and a <a> tag that
I have a div tag styled through CSS. I set the padding to 10px
I have a Div Tag which contains 4 child Div Tags <Div id=Parent> <div
I have a div with a <h1> tag in a div, with no margins.
I have a Div with five float divs inside: var div=document.createElement(div); div.className=cssDivNino; var divFolio=document.createElement(div);
I have a JSP page on which I have a div tag in which
I have a container div tag which wraps an image named tray which provides
Embedded custom-tag in dynamic content (nested tag) not rendering. I have a page that
I want to refresh a div tag in Django that contains temperature data. The

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.