I\'m trying to send an ajax POST to a php file, however the php file sends a notice of \"undefined index\", and the php file never seems to receive the value i\'m trying to
Instead of:
$val = $_POST["vals"];
use this:
if (isset($_POST['vals']) { $val = $_POST['vals']; }