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 7962709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:24:48+00:00 2026-06-04T05:24:48+00:00

1.html <form id=abc method=post action=navigate.php> <input type=radio name=nav value=a1 /> A 1 <input type=radio

  • 0

1.html

<form id="abc" method="post" action="navigate.php">
<input type="radio" name="nav" value="a1" /> A 1
<input type="radio" name="nav" value="a2" /> A 2
<input type="radio" name="nav" value="b1" /> B 1
<input type="radio" name="nav" value="b2" /> B 2
<input type="radio" name="nav" value="c1" /> C 1
<input type="radio" name="nav" value="c2" /> C 2
<input type="submit" name="submit" value="Go" />
</form>

navigate.php

<?
if ($_POST['nav']==a2) {
    echo "<meta http-equiv=\"refresh\" content=\"0;URL=page_1.php\">";} ?>

2.html

<iframe src="1.html"/>

When i select a2 and press go it goes to page_1.php but inside the frame. I want the main window to go to page_1.php. Is there any solution for this??

  • 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-06-04T05:24:50+00:00Added an answer on June 4, 2026 at 5:24 am

    You can use the target attribute of the form tag to determine the frame/window the submit should be targetting to. In you case use target=”_top” to open the result in the top frame (the main window)

    <form id="abc" method="post" target="_top" action="navigate.php">
    <input type="radio" name="nav" value="a1" /> A 1
    <input type="radio" name="nav" value="a2" /> A 2
    <input type="radio" name="nav" value="b1" /> B 1
    <input type="radio" name="nav" value="b2" /> B 2
    <input type="radio" name="nav" value="c1" /> C 1
    <input type="radio" name="nav" value="c2" /> C 2
    <input type="submit" name="submit" value="Go" />
    </form>
    

    The problem is that it will open in the top frame (the window) in all cases, so independent of what you choose as a value for the radio button.

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

Sidebar

Related Questions

My HTML FORM code: <form action=upload.php method=GET enctyped=multipart/form-data> <label for=file> Filename:</label> <input type=file name=loadedFile
Lets say i have an html control of the form <input name='options' value='one' title='ABC'>
A simple HTML form: <form enctype=application/x-www-form-urlencoded method=post action=/view/album/id/4><ol> <li class=no-padding><div class=element> <input type=hidden name=media
I have a post html form, and the action is index.php, which is the
My html form is: <div id=account-box> <form method=post> <label for=username>Username:&nbsp;<span class=input-bg><input class=login-input name=loginUser type=text
I have a HTML form containing checkboxes in the form of .. <input type=checkbox
in the form action i have the following line\ <form action={URL} method=post target=_self id=xxx
I have my form elements here: <li><div id=formanswer1 class=clonedInput>Answer: <input type=text id=formanswer1 value= /></div></li>
I have a html form with <textarea name=message></textarea> and I get the value by
$.ajax({ type: POST, url: add_secondary_interest.php, data: interest=ok, cache: false, success: function(html){ $('#interest_table tr:last').after(html); }

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.