Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 16th, 2008, 8:47 AM   #1
armend90
Newbie
 
Join Date: Feb 2007
Posts: 6
Rep Power: 0 armend90 is on a distinguished road
var codeofheight

hi

i dont know how it works in JS but in PHP is
var codeofheight = "<?php echo $codeofheight; ?>";
but i need it in JS... the opossite of this code

thnx
armend90 is offline   Reply With Quote
Old Jan 16th, 2008, 11:45 AM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: var codeofheight

A cryptic question... "The opposite of this code"?

I'm going to take a wild stab in the dark, and guess you're trying to do something like...

<?php $my_variable = <Something Coming From Javascript> ?>

So rather than in the code you posted, where JS obtains a value from PHP. Instead, you want PHP to obtain a value from JS?

Look into "AJAX". It's used to send data from Javascript to PHP. It's not as straightforward as the inverse in your first post, but it will get the job done.
Sane is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
compile a var name from another var dpsleep JavaScript and Client-Side Browser Scripting 6 Oct 19th, 2007 10:52 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:13 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC