Connecting Tech Pros Worldwide Forums | Help | Site Map

passing variables to php

chelvan's Avatar
Member
 
Join Date: Aug 2008
Location: Colombo 06, Srilanka
Posts: 87
#1: Sep 4 '08
hi
all

is it possible to pass a Java script variable's value to a php variable?

chel-1

gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,134
#2: Sep 4 '08

re: passing variables to php


yes it is possible, do you use post or get?
RamananKalirajan's Avatar
Needs Regular Fix
 
Join Date: Mar 2008
Location: Chennai - India
Posts: 349
#3: Sep 4 '08

re: passing variables to php


yes u can do it, can u please explain ur requirement clearly and fully. One of the way is u can have a hidden form variable and before submitting the form set the Javascript value to that hidden variable and in the PHP u retrieve the value.

Regards
Ramanan Kalirajan
Reply


Similar JavaScript / Ajax / DHTML bytes