echo json_encode with 2 variables with jquery form plugin

Ikabod

New Member
code inside php file:\[code\]$variable1 = array( 'variable1' => "$variable1" ); $variable2 = array( 'variable2' => "$variable2" ); echo json_encode ($variable1);\[/code\]code inside main page:\[code\]<span id="variable1"></span><span id="variable2"></span>\[/code\]I am trying to make it so it echos both variables in their spans.doing 2 echos does not work, but the single as coded above worksusing the jquery form plugin for this.
 
Back
Top