How can I transfer values of two different veriable on a single submit button click to an another page........using javascript & php
nil_gh_80
-2
Junior Poster in Training
Recommended Answers
Jump to PostA solution is to store the variable value in a hidden element inside form. For example:
document.getElementById('id').value = id_var;Then, when the form is submitted the idea it's to create another hidden element using $_POST or $_GET. In javascript, then will be possible to use:
var id_var = document.getElementById('id').value;
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.