Current location: Hot Scripts Forums » General Web Coding » JavaScript » PHP inside JavaScript?


PHP inside JavaScript?

Reply
  #21 (permalink)  
Old 07-10-10, 12:55 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by drsim View Post
you can pass variables from javascript to php and from php to javascript, but in both cases you have to have php installed with a server.
As noted before, you can fetch a value from a php variable and use it in javascript as long as the php variable has a value before the javascript is executed, but you can not pass a value from a javascript variable to php unless you load it into a form and submit the form to a php script or use AJAX to perform the httpRequest to a page that contains the php script.
__________________
Jerry Broughton

Last edited by job0107; 07-10-10 at 12:58 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 3 (0 members and 3 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create image using php and pass its site to javascript method PHP 4 04-03-07 08:19 AM
How to pass server response to Perticuler/Unique client javascript using php method PHP 1 03-25-07 06:02 AM
How to recive data from php script inside javascript? method JavaScript 10 03-23-07 07:49 PM
how can i use javascript in PHP sfaizanh PHP 3 01-25-04 01:31 PM


All times are GMT -5. The time now is 11:27 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.