;;
cancel)
rm "$tempfile"
- echo -n "Location: http://$HTTP_HOST/?page=attendees#$card\n\n"
+ [ -f "$cardfile" ] \
+ && echo -n "Location: http://$HTTP_HOST/?page=attendees#$card\n\n" \
+ || echo -n "Location: http://$HTTP_HOST/?page=attendees\n\n"
;;
delete)
rm "$tempfile" "$cardfile"