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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:15:40+00:00 2026-05-27T07:15:40+00:00

In my localhost url, am getting all the values which is being passed to

  • 0

In my localhost url, am getting all the values which is being passed to the other page are getting displayed in the url.

I dont want it to display the values which are passing,

for example

http://localhost/accounting/credit/credit.php?prod=sdfsdfsd-12&prodId=6&batch=567567

am using window.location.href to pass the values to other page, i think that is the reason its getting added to the url. Is there any other way to pass the values other than window.location.href ? or is there any other way to pass.

Is it possible to make the url not to display the values ?

I just want the url to display as below

http://localhost/accounting/medismo/credit_note/credit.php

How can i do 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-05-27T07:15:41+00:00Added an answer on May 27, 2026 at 7:15 am

    You can do this pretty simply using jQuery and an HTTP request:

    $.ajax({
       url: 'credit.php',
       type: 'POST',
       data: { prod: 'sdfsdf-12', prodID: 6 },
       success: function (data, status) {
           // Handle successful request
       },
       error: function (xhr, status, err) {
           // Handle request failure
       }
    });
    

    In this case, data is an object containing all the information you want to pass over to the given url. In your .php file you can access this information using:

    $_POST["prod"], $_POST["prodID"], etc.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to store a url such as: http://localhost/pro_print/index.php#page=home in a variable, but I
iam passing some parameters in url to a page through curl, but to my
I'm getting this error for the URL http://localhost:3000/dashboard/ Routing Error No route matches /dashboard
i am having a url like http://localhost/joomla/Joomla_1.5.7/index.php?option=com_content&view=section&layout=blog&id=3&Itemid=55 and i want to redirect this to
So I have a local URL like http://localhost:port/ with live video stream in it.
Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value . But using
What is the proper way to use URL parameters? My URL is this: http://localhost:8080/#pg5?testing=abc
i have table car_types ,a Controller users_controller and action url localhost/carsdirectory/users/dashboard in users_controller.php file
I want to redirect all urls trying to access files in a folder to
I am getting an error where it thinks my action is post id? URL

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.