Re: user info

From: Date: Fri, 21 Jul 2000 16:00:56 +0000
Subject: Re: user info
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7590@lists.php.net to get a copy of this message
""Erb, Maria"" <merb@keene.edu> wrote in message news:CFD3579B7DE2D111A7C000805F9F61AD0162A94F@dinsmore.keene.edu... > hi, > > I'm writing an application for students to be able to schedule time in a > lab. When the student clicks on a calander day, I'd like a pop up box to > take the student's name and the time he wants to schedule the lab. Then I'd Popup box? Use JavaScript. > like to pass this info to a php script that will re-write the current web > page with the information taken from the student added to it so that the web Use a database or text file to store the data, then generate a new webpage from that. Such as ... (this is your text file) Joe Blow,07/22/00,15:00,17:00 I'mALabUser,07/22/00,14:00,16:00 ... Then read that data in and generate the page appropriately. I trust that's not a difficult proposition (use explode()), but I can give code if needed. That also allows you to stop signups that conflict (I know our school labs have limited facilities and far too many signups for computer time). > page is always up to date with the latest lab schedule. Is using JavaScript > on the client-side the only way to do this? And if so, Is there a way to > do this without opening another window that has a form inside of it? And if > there is not another way, then I am having a tough time getting the form to > actually call the PHP script from within the newly opened window and would > appreciate suggestions. Thanks! If you don't require a popup window, this can all be done in PHP. The same form that shows the schedule can have, at the bottom or on the side, the signup area you desire. Getting a form to use a PHP script ... <form action="myscript.php"> buttons, textareas and whatnot </form> -- O.

« previous php.general (#7590) next »