add field to contact form
Posted: Sat Sep 24, 2005 6:01 am
What's the simplest way to go about this? I'd like to add a phone field.
TIA
TIA
Code: Select all
<tr>
<td class="serendipity_commentsLabel"><label for="serendipity_commentform_phone">Phone</label></td>
<td class="serendipity_commentsValue"><input type="text" id="serendipity_commentform_phone" name="serendipity[phone]" value="{$commentform_phone}" /></td>
</tr>
Code: Select all
$text = sprintf(A_NEW_COMMENT_BLAHBLAH, $serendipity['blogTitle'], $title)
. "\n"
. "\n" . USER . ' ' . IP_ADDRESS . ': ' . $_SERVER['REMOTE_ADDR']
. "\n" . USER . ' ' . NAME . ': ' . $fromName
. "\n" . USER . ' ' . EMAIL . ': ' . $fromEmail
. "\n" . USER . ' ' . HOMEPAGE . ': ' . $fromUrl
. "\n"
. "\n" . COMMENTS . ': '
. "\n" . $comment
. "\n"
. "\n" . '----';
Code: Select all
$text = sprintf(A_NEW_COMMENT_BLAHBLAH, $serendipity['blogTitle'], $title)
. "\n"
. "\n" . USER . ' ' . IP_ADDRESS . ': ' . $_SERVER['REMOTE_ADDR']
. "\n" . USER . ' ' . NAME . ': ' . $fromName
. "\n" . USER . ' ' . EMAIL . ': ' . $fromEmail
. "\n" . USER . ' ' . HOMEPAGE . ': ' . $fromUrl
. "\n" . USER . ' Phone: ' . $serendipity['POST']['phone']
. "\n"
. "\n" . COMMENTS . ': '
. "\n" . $comment
. "\n"
. "\n" . '----';
Code: Select all
'commentform_url' => htmlspecialchars(strip_tags($serendipity['POST']['url'])),
Code: Select all
'commentform_url' => htmlspecialchars(strip_tags($serendipity['POST']['url'])),
'commentform_phone' => htmlspecialchars(strip_tags($serendipity['POST']['phone'])),