diff options
Diffstat (limited to 'examples/append.c')
-rw-r--r-- | examples/append.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/append.c b/examples/append.c index cafdf9c..3a32287 100644 --- a/examples/append.c +++ b/examples/append.c @@ -5,7 +5,7 @@ void response(magi_request *r) { char *data = magi_request_param(r, "addon"); - magi_response_add(r, + magi_response(r, "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' " "'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>" "<html xmlns='http://www.w3.org/1999/xhtml'>" @@ -15,9 +15,9 @@ void response(magi_request *r) FILE *file = fopen("file_to_append", "a"); fputs(data, file); fclose(file); - magi_response_add(r, "<p>Appended!</p>"); + magi_response(r, "<p>Appended!</p>"); } - magi_response_add(r, + magi_response(r, "<form action='/cgi-bin/append' method='post'><fieldset>" "<input type='text' name='addon' value='Whatever you want to add.'/>" "<input type='submit' value='Append'/>" |