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

Ask A Question

Stats

  • Questions 510k
  • Answers 510k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Just try parent.functionName() it should work. Edit Just to be… May 16, 2026 at 5:05 pm
  • Editorial Team
    Editorial Team added an answer Ctrl + Space or Ctrl + J You can also… May 16, 2026 at 5:05 pm
  • Editorial Team
    Editorial Team added an answer Thanks for the replies, i have managed to see the… May 16, 2026 at 5:05 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have an array declared like this: var dict = []; When I do
See this code: var MyObject = new function() { this.tos = new Array(); this.show
normally JavaScript’s toString() method returns the array in a comma seperated value like this
I have to send a byte array (encoded photo) from my PHP client to
I have this friend request page, and i want my div echo <div style='
I use this arrayCollection to populate a Flex 3 Datagrid. I'd also like to
I have a problem with API call on Facebook Graph API. This API call
this is my code snippet, where the program doesn't enter the foreach loop: var
I have two files, one containing an array in PHP that is echo ed
Currently my AJAX is working like this: index.php <a href='one.php' class='ajax'>One</a> <div id=workspace>workspace</div> one.php

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.