could you help me pass a variable that was taken from a html form into javascript. The form asks for the tablename It is passed through PHP: A first action is underway, and created successfully: the Geoserver postgis table is created through PHP curl (entire code below) then the javascript tries to get $table with a PHP insert; this will