Using jQuery I can generate a string like this on a HTML document :
num0=500356,num1=853734,num2=981608,num3=795915,num4=824111,num5=831158,num6=364091,num7=368537,num8=410001
This data is not in a form or input HTML tag. It is a string assigned to a variable.
Is there a way to capture this string using javascript and PHP and then insert the numX into a mysql db such as? The db will have fields of num0, num1, num2, num3, num4, num5, num6, num7, num8
num0=500356
num1=853734
num2=981608
num3=795915
num4=824111
num5=831158
num6=364091
num7=368537
num8=410001
Thank you for any help.
<p>
tag)? Do you need to retrieve it from the document first, or can we assume that it can be read easily and you just need to know how to process it? – halfer Feb 6 '13 at 0:02var myJsArray = <?php echo json_encode($myPhpArray) ?>;
in your HTML output, inside a<script>
block. – halfer Feb 6 '13 at 10:20