javascript variable into php variable |
javascript variable into php variable |
![]()
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 919 Joined: Apr 2004 Member No: 14,856 ![]() |
ok, i hav a variable in js.. Is it possible to make it a php variable without refreshing the page or a form?
|
|
|
![]() |
![]()
Post
#2
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 101 Joined: Sep 2004 Member No: 49,477 ![]() |
QUOTE(T.K.O. @ Aug 1 2005, 11:05 AM) ok, i hav a variable in js.. Is it possible to make it a php variable without refreshing the page or a form? nope. it'd require some sort of refresh. QUOTE(T.K.O. @ Aug 1 2005, 11:05 AM) ok, i hav a variable in js.. Is it possible to make it a php variable without refreshing the page or a form? nope. it'd require some sort of refresh. why? because PHP is server side and has already been processed by the time the client sees your site. one way you can do it using GET variables, of course requiring some sort of action. http://mysite.com/?thevariable=value then you get use the $_GET global array to recieve it :) well, there you go. some other ways would be to use sessions and cookies of course :) Posts merged. =P This post has been edited by nyah-nek0: Aug 1 2005, 04:08 PM |
|
|
![]() ![]() |