Hello,
I think that i don't understand how to use "On submit code" ...
I have a form with an address fields and two hidden fields, 'latitude' and 'longitude'.
I would like to use GMap service to fill my hidden fields.
I put in "On submit code" then following snippet :
<?php
$lat = $_POST('latitude');
$long = $_POST('longitude');
$add = $_POST('address');
geocode($add, &$lat, &$long); // my routine wich works ordinary fine
$_POST('latitude') = $lat;
$_POST('longitude') = $long;
?>
Nothing works and i receive a message : "Parse error: syntax error, unexpected '=' in /.../components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 6
Have you any idea ? where can i find some doc/sample for this functionnality ?
Thank you, and excuse me for my poot english. i'm a damned froggie :-)
I think that i don't understand how to use "On submit code" ...
I have a form with an address fields and two hidden fields, 'latitude' and 'longitude'.
I would like to use GMap service to fill my hidden fields.
I put in "On submit code" then following snippet :
<?php
$lat = $_POST('latitude');
$long = $_POST('longitude');
$add = $_POST('address');
geocode($add, &$lat, &$long); // my routine wich works ordinary fine
$_POST('latitude') = $lat;
$_POST('longitude') = $long;
?>
Nothing works and i receive a message : "Parse error: syntax error, unexpected '=' in /.../components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 6
Have you any idea ? where can i find some doc/sample for this functionnality ?
Thank you, and excuse me for my poot english. i'm a damned froggie :-)