{'body'}; my $remote = LJ::get_remote(); my $userid = $remote && $remote->{'userid'} ? $remote->{'userid'} : 0; if ($POST{'action:submit'}) { if (LJ::trim($POST{'survey'}) ne "") { my $dbh = LJ::get_db_writer(); my $sth = $dbh->prepare("INSERT INTO fotobilder_feedback VALUES (?,?,'N',NOW(),?)"); $POST{'survey'} .= "\n\nUser-agent: " . BML::get_client_header('User-Agent'); $sth->execute($POST{'url'}, $userid, $POST{'survey'}); $$body .= $dbh->err ? "errstr . " p?>" : ". p?>"; return; } } unless ($POST{'url'}) { $$body = "http://pics.livejournal.com, provided at the bottom of each page. ". "If there wasn't a button for you to press, or you have some other related feedback, please post about it to ". "the community . Thank you! p?>"; } else { $$body .= ""; $$body .= ""; $$body .= "
"; $$body .= LJ::html_hidden('url',$POST{'url'}); $$body .= LJ::html_textarea({ 'name' => "survey", 'rows' => 10, 'cols' => 40, 'style' => "width: 100%; border-top: 1px solid #000; border-left: 1px solid #000; border-bottom: 1px solid #ddd; border-right: 1px solid #ddd", }); $$body .= "
" . LJ::html_submit('action:submit',"Send Survey") . "
"; $$body .= "
"; } return; } _code?> FotoBilder Feedback Survey body=>{'body'}; _code?> page?>