I don't really have a question about JS, but more about how PHP functions compared to JS.
Is it possible for me to write a named function, like in JS?
I have a page that I would like to have buttons that use JS to trigger onClick events to load different PHP scripts... however, I'm not sure how to name a PHP function, nor do I know how to call one by name.
THe scenario is thus: I have users who want to edit their daily calendars. When they go to the page named "editcal.php", they are given a form with some fields on it that apply to adding new records, deleting old ones, and to editing existing records. When a user hits "Add" I want to run the "addrecord" script, ect.
Please advise. You guys are super.
~Kristi