]> git.plutz.net Git - confetti/blobdiff - actions/update_attendee.sh
updated manipulation and view functions for attendee
[confetti] / actions / update_attendee.sh
index ba84be8f75462627580b3f45643137269217cfb1..fee91fc3d0f405a652e4a2315f46953ccb58c7d1 100644 (file)
@@ -24,7 +24,7 @@ case "$_POST[\"action\"]" in
   addfield)
     echo "$_POST[\"newfield\"]:\r" >>"$tempfile"
     echo "END:VCARD\r" >>"$tempfile"
-    echo -n "Location: http://$HTTP_HOST/?page=attendees&edit=$card#$card\n\n"
+    echo -n "Location: http://$HTTP_HOST/?page=attendees&edit=$card\n\n"
     ;;
   update)
     echo "END:VCARD\r" >>"$tempfile"
@@ -35,4 +35,8 @@ case "$_POST[\"action\"]" in
     rm "$tempfile"
     echo -n "Location: http://$HTTP_HOST/?page=attendees#$card\n\n"
     ;;
+  delete)
+    rm "$tempfile" "$cardfile"
+    echo -n "Location: http://$HTTP_HOST/?page=attendees\n\n"
+    ;;
 esac