dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: PHP echo to JavaScript

  1. #1
    Join Date
    Apr 2013
    Posts
    1

    PHP echo to JavaScript

    How can the javascript show an output that is came from PHP echo ?

  2. #2
    Join Date
    Aug 2012
    Location
    Belgium
    Posts
    66
    <script type="text/javascript">
    example = "<?php print($value); ?>";
    alert(example);
    </script>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles