For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > March 2005 > Javascripts and MySQL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Javascripts and MySQL
Chris Storey

2005-03-14, 8:57 am

Hi

I have some pages which perform Javascript calculations etc. and end up
with a number in a box at the bottom of a page. The pages themselves are
PHP, but with Javascripts embedded in them.

How can I get the results of these calculations (which are in text
boxes), and place them into a mysql database?I gather that it may not be
possible to do this directly, but is there any way around it? I dont
want to have to rewrite the scripts in another language!

Cheers

Chris
J.O. Aho

2005-03-14, 3:57 pm

Chris Storey wrote:
> Hi
>
> I have some pages which perform Javascript calculations etc. and end up
> with a number in a box at the bottom of a page. The pages themselves are
> PHP, but with Javascripts embedded in them.
>
> How can I get the results of these calculations (which are in text
> boxes), and place them into a mysql database?I gather that it may not be
> possible to do this directly, but is there any way around it? I dont
> want to have to rewrite the scripts in another language!


Mae the text box into a form, and you post the form, where a php page process
it and stores the submited value to the database.

If you want direct access, then you need to use java applets instead.


//Aho
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com