On Nov 18, 4:04 pm, Me So Curious <[EMAIL PROTECTED]> wrote:
>
> To make myself clear as water, I want the Javascript equivalent of
> this PhP method:
>
> <input type='hidden' name='anyname' value='<?php $thePHPvariable ?>'>

There isn't a direct equivalent. What you can do is define your HTML
elements and then use Javascript to give them a value. Note that to do
that you need "id" attributes.

<form>
<input type='text' name='lat' id='lat'>
<input type='text' name='lng' id='lng'>
</form>
<script>
document.getElementById("lat").value=lat;
document.getElementById("lng").value=lng;
</script>

If you can't get that to work, please follow the posting guidelines
and post a link. And I'm going to quote Rossko in a previous thread of
yours: "I'm very much afraid that is still standard HTML/javascript
interaction and absolutely nothing to do with the Maps API"

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to