Note that there are some explanatory texts on larger screens.

plurals
  1. PO$_GET values from link using ajax
    primarykey
    data
    text
    <p>i did a setting page for my script ... and in the form of the setting a did this </p> <pre><code>&lt;form action='javascript:insert()'&gt; </code></pre> <p>then i get all the values inserted on the input or checkbox or anything in the form of setting with javascript .. just like:</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>and every thing is working fine .. i send all the values using ajax to another php page to update my database now my quastion is :</p> <p>in the same page i have a section to edit my members .. i'm showing my members list using <code>" SELECT * FROM ..."</code> result showing like this :</p> <pre><code>MEMBER DEPARTMENT ACCESS EDIT admin admin all edit user2 service service edit </code></pre> <p>the "edit" word is a link like:</p> <pre><code>&lt;a href='hueimx.php?action=edit&amp;uid={$result['uid']}'&gt;edit&lt;/a&gt; </code></pre> <p>And <code>"{$result['uid']}"</code> This is a customer id getting from database</p> <p>so the "edit" word of the admin user the link goes like this</p> <pre><code>&lt;a href='huemix.php?action=edit?uid=1'&gt;edit&lt;/a&gt; </code></pre> <p>i want to send the generated [uid] from database to my javascript page</p> <p>and get the uid value into a variable in ajax function to send it to another php file to update my database ,,, how to??</p>
    singulars
    1. This table or related slice is empty.
    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.
    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