+ 2
Is it possible to pass a JS value to a php variable ?
7 odpowiedzi
+ 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.
+ 1
Thats it then 😅 ... ajax works well already tried it .. just was looking for another option u know ... so thank you soo muchh 😊😊
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
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