intranetman has asked for the wisdom of the Perl Monks concerning the following question:
You would think it would display the contents after a deletion since it displays after an addition. print_form() returns the form to be filled out, delete_appointments handles removal from the db and does not return anyting, updatE_day adds to database and returns error if any, and display returns the list of reservations.$cur = CGI->new(); $mode = "default"; if($cur->param("mode")) { $mode = $cur->param("mode"); } $content .= print_form(); if (($cur->param("delete")) { $content .= delete_appointment(); } if($cur->param("laptop")){ $content .= update_day(); } $content .= display_appointments(); open (TEMPLATE, "../template.shtml")||dienice("Content-type: text/html +\n\nCould not find template"); while (<TEMPLATE>){ $page .= $_; } $page =~ s/<!-- ?content ?-->/$content/ig; close (TEMPLATE); print "Content-type: text/html\n\n$page";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No update after delete
by eibwen (Friar) on May 02, 2005 at 07:06 UTC | |
|
Re: No update after delete
by mpeters (Chaplain) on May 02, 2005 at 13:57 UTC |