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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:29:19+00:00 2026-05-13T22:29:19+00:00

I am trying to set and catch the URL variable It begins with a

  • 0

I am trying to set and catch the URL variable

It begins with a form which has the standard action set to "/autorisation/logout"
Then a button with an inline JavaScript function

function tbPayout()
{
parent.location = "/autorisation/logout?rcgo=payout";
return true;

} 
<input src="/images/go02.gif" type=image border=0 name="go1" onClick="return tbPayout();">

In the authorization controller I try to catch it

if ( isset($_GET['rcgo']) ) {

but it doesn’t work and I can’t see the variable in the URL and therefore the
default forms action is performed?

I also have another redirect page with:

content="3; url=http://www.domain.nl/index/index?rcgo=logout" />

and that works fine.

How can I get the JavaScript to work because I have three submit buttons that I need to control by using different URL variables that I need to read in the controller function.
Which is logout() in this case.

It is worth mentioning that is has got something to do with the fact that it can not interpret the variable in the URI because it defaults to the index function off that controller which is the standard behavior if it can’t find the second part.
Without the variable attached, it redirects ok.

Is there a solution?

  • 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-13T22:29:19+00:00Added an answer on May 13, 2026 at 10:29 pm

    I think it’s as simple as

    parent.location.href = "/autorisation/logout?rcgo=payout";
    

    instead of

    parent.location = "/autorisation/logout?rcgo=payout";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to set up facebook on a page via a function
I'm trying to set up a program to record a portion of an internet
I am trying to do a POST request with a set of parameters to
I encountered error #2148 (which is security) when i was trying to load an
What i am trying to do is catch a Button click that is inside
I am trying to update a set of queries using .NET's DataAdapter. Here's a
I am trying to pass an exception to an HttpHandler by doing the following:
I've inherited a website developed using Struts 1.2 that I need to make some
My Code: public MyConstructor() { view = new JPanel(new GridLayout(3, 1)); header = new
I am creating a script that will be run in a MS SQL server.

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.