stymiee
He's No Good To Me Dead
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
The only possible way to do this with PHP and Javascript is to have the javascript to refresh the page, best way is with a hidden form, than have PHP detect the form submition and than execute the script to add info to the database.
Ajax as mentioned before is another option.
PHP is a server side script and is processed by the server, the client browser never sees the PHP. Javascript is processed by the client browser. Therefor javascript cannot call PHP functions.
GliderPilot
Junior Poster in Training
86 posts since Sep 2006
Reputation Points: 8
Solved Threads: 4
can u please tell me how can i use timer in my webpages i am making one pages in which i need timer function in this pages and what is ajax mean and its uses
atplerry
Junior Poster in Training
58 posts since Jul 2007
Reputation Points: 10
Solved Threads: 3