Click to See Complete Forum and Search --> : Online Calandar that visitors can click certain days and bring up a submit form?


sanger
05-05-2003, 11:18 AM
Hi all,

I want to put up a yearly calandar that lets a person click on a month and then a day in that month which will then pull up a feedback form.

The purpose:

I hold "how-to" clinics. I want club members who are interested in having a clinic to be able to see what days are available and then send me a message letting me know they are interested in that day, (before someone else takes it).

Anyone ever seen anything like this?

Thanks,

Mike

havik
05-05-2003, 02:17 PM
This sounds like a lot of work, but doable for sure. I'd try find, or write, some server side program to do this but if you desire javascript then here's what you should do.

Get a calender script, here are good resources:
http://www.hotscripts.com/JavaScript/Scripts_and_Programs/Calendars/
http://javascript.internet.com/calendars/

Each date could have a link like so:

<a href="javascript::popupform('the date')">the date here</a>

Here is the function:

function popupform(thedate) {

document.write('<form name="form">');
//put whatever form elements you need

document.write('<input type="text" name="date" value=' + thedate + '>');

document.write('</form>');
}

Then you'd probably be best using a cgi script to process and send the form. You can find some here:
http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Form_Processing/

Hope this all helps,

Havik