Dynamically create javascript array

Asked

Viewed 15 times

0

I want to do something but I don’t know if it’s possible, come to my idea.

Suppose I have a page called index.html inside it has a javascript code that receives data from a select that is on another page called select.php, i need the index.html page to receive this data from the php page and create dynamic arrays for each received record and display them separately in a browser log.

Example:

[0][joão][10][São Paulo]

[1][Pedro][10][Bahia]
  • You can explain or show the code of "receives data from a select on another page"?

  • So, the question is this, I just found code that sends the php value to another page, but not the other way around. I need for example, send via GET the name of the user and the page that runs in the background receives and gives the select and sends all records to the foreground page that creates the arrays and displaying in the log

  • Take a look at the question and answers I have set. This will help you a lot if it doesn’t solve the problem completely. Then if you have any more specific parts that need support, ask another question here.

  • So that’s not really what I need, but I’m going to open another question because I’ve got a new idea

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.