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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:21:04+00:00 2026-06-04T02:21:04+00:00

on page 1, I try to pass some parameters through a url to page2.

  • 0

on page 1, I try to pass some parameters through a url to page2.
I want to fire up page2 and select the options as if i selected them on page2.

How can I pass #divOptionToTake, #divSelectChannel_btnSubmit, #selected_channel_new, #selChannels, #frmSelectChannel from page 1 and get it executed? Thanks.

Page1

…../page2.php?selected_channel=facebook&option_to_take

Page 2

<html>

  <script type="text/javascript">        
    $(document).ready(function() {

        <?php if($option_to_take == ""){ ?>
        $.blockUI({ message: $('#divOptionToTake'), css: { width: '420px' } }); 
        <?php } ?>

        // SELECT CHANNEL
        $('#divSelectChannel_btnSubmit').click(function() {                
            $.unblockUI();
            $('#selected_channel_new').val($('#selChannels').val())
            $('#frmSelectChannel').submit();
            //return true;               
        });            

    });  
  </script>

</html>

The code of the form is here.

<form name="frmSelectChannel" id="frmSelectChannel" action="" method="POST">
<input type="hidden" name="task" value="select_channel" />
<input type="hidden" name="option_to_take" value="new campaign" />
<input type="hidden" name="selected_channel" id="selected_channel_new" value="facebook" />
<div id='divSelectChannel'>
        <select id='selChannels' class='span3'>
                        <option value="facebook" <?php echo (($selected_channel == "facebook") ? "selected='selected'" : ""); ?>>facebook</option>
                        <option value="twitter" <?php echo (($selected_channel == "twitter") ? "selected='selected'" : ""); ?>>twitter</option>                                                         
        </select>
            <input class='btn btn-primary' type='submit' id='divSelectChannel_btnSubmit' value='Submit' />
        &nbsp;&nbsp;
              <input class='btn' type='button' id='divSelectChannel_btnBack' value='Back' />
        </div>
   </form>
  • 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-04T02:21:05+00:00Added an answer on June 4, 2026 at 2:21 am

    You need to retrieve the values of your url using the $_GET global variable; an example of how to do this:

    <?php
    if (isset($_GET['option_to_take']) {
        $option_to_take = $_GET['option_to_take'];
    }
    else {
        $option_to_take = '';
    }
    ?>
    

    If I misunderstood what you want, please let me know so I can modify this answer.

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

Sidebar

Related Questions

I try to pass some value from one page to another but at the
I'm trying to pass some parameters (a couple of strings) from a page to
My current development is using CodeIgniter, and when I try to pass some parameters
So I have a situation where I need to pass some parameters on url.
Try to download this page: http://www.4shared.com/get/B4AgMkcw/cookies.html I can use wget/firefox to get the whole
on a page I use similar syntax to google analitycs code, to pass parameters
i try to load some user control on my Default.aspx page selecting dropdown control.
Im trying to pass some values into a text box from a child page
I'm trying to pass some values from one .aspx page to an handler (.ashx).
I did some searching to try and generate jpg files from an html page

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.