Note that there are some explanatory texts on larger screens.

plurals
  1. POsend data to java.js page then send it to another page
    primarykey
    data
    text
    <p>I have a script, on the customers page I have</p> <pre><code>&lt;a href='hueimx.php?action=edit&amp;uid={$result['uid']}'&gt;click to edit&lt;/a&gt; </code></pre> <p>and </p> <pre><code>{$result['uid']} </code></pre> <p>This is a customer id that I am getting from a database.</p> <p>Now I want to receive the "uid" value on my javascript page. This is my code:</p> <pre><code>function insert() { // Optional: Show a waiting message in the layer with ID login_response document.getElementById('huemix_message').innerHTML = "&lt;img src='images/saver.gif' /&gt;" // Required: verify that all fileds is not empty. Use encodeURI() to solve some issues about character encoding. var system_name= encodeURI(document.getElementById('system_name').value); var system_logo = encodeURI(document.getElementById('system_logo').value); var system_number = encodeURI(document.getElementById('system_number').value); var system_tel = encodeURI(document.getElementById('system_tel').value); if($("#system_pics").is(':checked')){ var system_pics = 1; } else { var system_pics = 0; } if($("#system_bread").is(':checked')){ var system_bread = 1; } else { var system_bread = 0; } // Set te random number to add to URL request nocache = Math.random(); // Pass the login variables like URL variable http.open('get', 'huemixpanel_insert.php?system_name='+system_name+'&amp;system_logo='+system_logo+'&amp;system_number='+system_number+'&amp;system_tel='+system_tel+'&amp;system_pics='+system_pics+'&amp;system_bread='+system_bread+'&amp;uid='+uid+'&amp;nocache = '+nocache); http.onreadystatechange = insertReply; http.send(null); } </code></pre> <p>In this page I recieved all the values from the setting page and forward it to the php page to insert them into the database. Everything is working OK, but I don't know how to receive the "uid" value and send it as you see.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload