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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:51:15+00:00 2026-06-09T06:51:15+00:00

I am trying to redirect a user to a different asp page with some

  • 0

I am trying to redirect a user to a different asp page with some data that the asp page can use. This is the code I am using:

var done = confirm("Would you like to save?");
if (done == true)
{
    var concode = "<%response.write(concode) %>";
    location.href = "Main.asp?concode="+concode;
}

However I am noticing that information is showing in the URL after “Main.asp?concode=” which is similar to a html form “get” method.

Is there any way I can make this code similar to a html form “post” metod? Because I am using a <%request.form("concode")%> and there is information in the URL that is sensitive, such as the server name and password.

Or do I have to use a combination of AJAX and javascript to achieve what I need?

  • 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-09T06:51:16+00:00Added an answer on June 9, 2026 at 6:51 am

    The easiest way to post data from javascript and move the page to the results (rather than using AJAX to do so without changing the page) is to put that information into a form, and then submit() it. The form can be hidden, or consist entirely of inputs with type="hidden" so it need not affect the UI.

    That said, the only added security from this is of over-the-shoulder reading. Important, but it still needs HTTPS to protect it from eavesdroppers (and it won’t protect anything from the user themselves, anything that the end-user shouldn’t be allowed to see simply can’t be dealt with through javascript).

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

Sidebar

Related Questions

I'm trying to redirect this page Page to a Jquery mobile website that I'm
I am trying to redirect the user to a different page after 1 second
I am trying to redirect the user to a different page upon clicking on
Ok, I have an default.aspx page that I'm trying to have redirect the user
We've been trying to redirect from one action to another, hoping that data would
I am trying to redirect pages using mod_rewrite to the pages with some variables
I have been trying to redirect the user to the review page. I tried
I'm trying to redirect the user if their account hasn't been confirmed. So this
This is probably one of those easy questions.. I'm trying to redirect the user
I'm trying to perform a redirect to a different page in Javascript AND also

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.