0

I received the following error:

Parse error: syntax error, unexpected 'echo' (T_ECHO) in /functions/contact.php on line 14

For the following code:

  // Responses provided
      $stage1a = echo "<script>
      $(function(){
        $(this).data().stage1a;
      });
      </script>";

Essentially it is suppose to echo the data stored in a previous jquery file:

optionScope.data().stage1a = ["idea generation", "mindset", "psychology"]; 

where optionScope equals to the scope element of the .ready() function .

Jay Blanchard
  • 33,530
  • 16
  • 73
  • 113
code_legend
  • 3,405
  • 11
  • 46
  • 90

0 Answers0