+ 2

Is it possible to pass a JS value to a php variable ?

23rd Nov 2017, 12:44 AM
Marouane EL KORTI
Marouane EL KORTI - avatar
7 Answers
+ 1
JavaScript variables on many client-side computers. Php variables on a single web server. The ways to send the updated variable to server are using Php form post script or JavaScript Ajax.
23rd Nov 2017, 3:40 AM
CalviÕ²
CalviÕ² - avatar
+ 1
Thats it then šŸ˜… ... ajax works well already tried it .. just was looking for another option u know ... so thank you soo muchh šŸ˜ŠšŸ˜Š
23rd Nov 2017, 1:23 AM
Marouane EL KORTI
Marouane EL KORTI - avatar
0
with ajax yaa its working but with the form it ain't work ... i was wondering if there is a way other than ajax ! šŸ¤” #jamie
23rd Nov 2017, 1:05 AM
Marouane EL KORTI
Marouane EL KORTI - avatar
0
i got that ... but how can I get the form variable to php without submitting !! ... cuz what i want to do it to get a selected option by JS function and pass that option to php so i can be able to search in the data base ... ! i hope i get what I'm trying to do and sorry for disturbing though šŸ™‚šŸ™‚ Thank you #Jamie
23rd Nov 2017, 1:19 AM
Marouane EL KORTI
Marouane EL KORTI - avatar