any php, js , PEAR expects here that can help me?


  1. Posts : 19
    windows 7 professional
       #1

    any php, js , PEAR expects here that can help me?


    ok im makin a gmap website for a uni subject
    its in PEAR templates
    problem i can seem to access the php variable in my js script

    in test.php
    i got
    $address= $_POST['address']; which gets it from input in prev page

    connected to dat php page is a test.tpl file where all html and js is there
    i tried this and all sort of methods
    var myVar = "<?php echo $address; ?>";
    alert(myVar);

    but all it shows it <?php echo $address; ?> in the alert box

    i need that address value so i can pinpoint it on a gmap by calling a function like dat

    showAddress(<?php echo $address; ?>);return false;


    any ideas how to resolve it?
    thx :)
    any php, js , PEAR expects here that can help me? Attached Files
    Last edited by friedrice; 21 Apr 2010 at 07:18.
      My Computer


  2. Posts : 75
    Windows 7 Better then yours
       #2

    Well you need to end it correct.
    Send me a pm and i'll fix the code for you
      My Computer


  3. Posts : 19
    windows 7 professional
    Thread Starter
       #3

    cool i send u 2 pms since i cant fit both codes in one pm
    and not sure bout attachments here since im still new here
    thx alot for ur help :)
      My Computer


  4. Posts : 3,639
    Windows 7 Ultimate, OS X 10.7, Ubuntu 11.04
       #4

    friedrice said:
    cool i send u 2 pms since i cant fit both codes in one pm
    and not sure bout attachments here since im still new here
    thx alot for ur help :)
    So you know, the current private messaging system here does not support attachments.

    Something you could do is try wrapping the code inside the code tag [code ] [/code ] (without the spaces).

    Example.

    Code:
    Google announced today via their official blog that they have released a tool 
    showing requests for data that governments have made around the world. To open the 
    blog they quote article 19 of the Universal Declaration on Human Rights  which states 
    that "everyone has the right to freedom of opinion and expression; this right includes 
    freedom to hold opinions without interference and to seek, receive and impart 
    information and ideas through any media and regardless of frontiers."
      My Computer


  5. Posts : 19
    windows 7 professional
    Thread Starter
       #5

    yeah i did realised dat it doesnt support attachments also
    oh as mite as well add the codes on my prev post if anyone can help me :)
      My Computer


  6. Posts : 19
    windows 7 professional
    Thread Starter
       #6

    any one can help me?
      My Computer


  7. Posts : 19
    windows 7 professional
    Thread Starter
       #7

    dw i solved my problem :) gmap works :P
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:04.
Find Us