
October 22nd, 2003, 02:45 PM
|
|
Junior Member
|
|
Join Date: Oct 2003
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Here is the site to try it out: URL
Here is the add portion of the script:
if( $mode eq "add" ){
$time = $jcgi::in{"time"} ;
$ampm = $jcgi::in{"ampm"} ;
$summary = $jcgi::in{"summary"} ;
$extended = encode( $jcgi::in{"extended"} ) ;
if( $summary eq "" || $month eq "" || $date eq "" || $year eq "" ){
return_error( "You must enter the month, date, year, and a summary for the event!<br>month: $month date: $date year: $year summary: $summary" ) ;
}
#construct a new string that will be the record for the date
$events .= $summary."&" ;
$expls .= $extended."&" ;
$times .= $time." ".$ampm."&" ;
$recordstring = $key."\|".$events."\|".$expls."\|".$times ;
dn_add( $key, $recordstring ) ;
#finally, send the user back to the calendar, loading the month and year that he added
#an event to.
print_header( "Location", "$cgiurl?db=$dbname&month=$month&year=$year" ) ;
} #end if($mode eq "add")
Last edited by dmcgill : October 22nd, 2003 at 02:49 PM.
|