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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:11:43+00:00 2026-05-13T16:11:43+00:00

i have a js array like this: var myArray = []; myArray[1] = ‘test’;

  • 0

i have a js array like this:

var myArray = [];
myArray[1] = 'test';
myArray[2] = 'test';

-i want to hide it from users to see it. how can i store just the array in a php script and call it?

right now i have the .js separate from my form. and i just call it. but anyone can easily view source and visit the url using the .js name

-another question i have is to hide a url values from the user. i have something like this:
http://www.test.ca/people.php?id=12

i want to hide the values. thanks

  • 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-13T16:11:43+00:00Added an answer on May 13, 2026 at 4:11 pm

    For the JS code, if the browser has to execute it, then the user can see it. Not much you can do.

    If you want to carry values between pages and you don’t want them to be seen, don’t use a query string — use PHP sessions instead.

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

Sidebar

Related Questions

if I have an array like this: var myArray:Array = [apple,orange,strawberry]; then I want
I have an array like this var array = [{ order: 3, sub -
I have an array like this: var arr1 = [a, b, c, d]; How
Say, I have an array that looks like this: var playlist = [ {artist:Herbie
I have a map array with objects stuffed with variables looking like this: var
I have javascript code some thing like this -- var count=3; var pl=new Array(count);
I have an associative array which when var dumped looks like this: Array (
I have an array of function callbacks, like this: class Blah { private var
I have an array declared like this: var dict = []; When I do
I have something like this var myArray = []; myArray.push(someObject); but then if I

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.