• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

passing the same parameters on to another page

The page (page 1) i am using will receive 3 or 4 parameters when it is called.  I want to provide the user with a hyperlink or button that will call another page (page 2) and pass along the same parameters in that call.  Page 1 never uses the parameters or their values, it just calls page 2 with them.  How can i do this in front page?  Thanks for any help you can provide-
1 Solution
If these parameters are passed to page 2 using a form, you could try along the lines of:

- Set the form on page to use GET rather than POST

- Read the parameters from the GET request using Javascript:


- If these fields are being passed to a final script on page 3, you can insert some hidden fields on page 2 and use some more Javascript to access the array created by the above bit of code and copy the values into those hidden fields. Then when you submit the form associated, the parameters from page 1 and 2 should be passed to the final page.

Otherwise, you could write some Javascript that maybe just wrote the values to screen or something similar.

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now