Page 1 of 1

Form script

Posted: Mon May 11, 2009 9:56 am
by Todlerone
Hello all and thank-you in advance for any help/suggestions. I've never made any javascript code before and I really want to use it for my problem. I program with PHP some what and have a question about forms. Does anyone know of a good tutorial/link that would show me how to make a form populated by MySQL data that would allow me to select a current date from the DB data then ask to input scores (for a baseball league) for 2 games (all selected games are double headers). I currently have it done with PHP but would really like to do it with Javascript.

CHEERS

Re: Form script

Posted: Mon May 11, 2009 10:06 am
by onion2k
Javascript can't interact with MySQL, so you can't do that. You could write some JS that talked to a PHP script that returned data in, for example, JSON format instead, but that's an added level of complexity.

As with everything to do with Javascript I suggest you look at jQuery.

Re: Form script

Posted: Mon May 11, 2009 10:28 am
by Todlerone
TY onion