I'm having trouble with this script recognizing my variable as a variable. The important part of the script is as follows:
var content = 'imagereims';
var ms = content.substring(5);
$.get("../msimages/image.php", {ms: 'ms', pid: '<?php echo "$pid" ?>'}
);
I want the script to recognize the variable ms as reims, but when the page displays it doesn't recognize the content of the variable. It just repeats ms. I've tried writing the variable without single quotes and with double quotes. I get the same result.
Any suggestions. Thanks