Form script

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Todlerone
Forum Commoner
Posts: 96
Joined: Sun Oct 28, 2007 10:20 pm
Location: Hamilton, Ontario, Canada

Form script

Post 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
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Form script

Post 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.
Todlerone
Forum Commoner
Posts: 96
Joined: Sun Oct 28, 2007 10:20 pm
Location: Hamilton, Ontario, Canada

Re: Form script

Post by Todlerone »

TY onion
Post Reply