PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
help.. i need to pass the javascript value to php so that it will up date the field in the database... how will i do this?.. any code?.. i'm beginner so sori for my codes.
my codes:
It's not possible in the way you are trying to do it. PHP is a server-side only (as of right now anyways) language. Javascript is processed on the Client (browser) side most often. They do not mix in both directions. You can request that Javascript fill some values and do a form submission or go to a new url passing the data in that manor, but it will not be processed in the linear fashion you are assuming is possible.
In the future, please refrain from shouting through out the majority of your topic. Additionally, please read and understand the forums' many rules here..
It's not actually JS passing the value it's a new technology that allows sending a small packets of data to the server and receiving the result using try/catch.
Failing that, you can alsways have the page reload using