Hi,
How do I create a contact us page? I'm looking to create a similar page as your ---
http://faq.phpmyfaq.de/contact.html
But, I just want the message box and the send email. No name, no emails, etc...
thanks,
SV
creating a contact us page
Moderator: Thorsten
Re: creating a contact us page
Hi,
and also no captcha?
bye
Thorsten
and also no captcha?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: creating a contact us page
Yes. I would like no captha.
thanks again.
SV
thanks again.
SV
Re: creating a contact us page
Hi,
remove the following code in template/contact.tpl:
Change the code in sendmail.php from
to
Not tested, should work.
bye
Thorsten
remove the following code in template/contact.tpl:
Code: Select all
<label for="name" class="left">{msgNewContentName}</label>
<input class="inputfield" type="text" name="name" value="{defaultContentName}" size="40" /><br />
<label for="email" class="left">{msgNewContentMail}</label>
<input class="inputfield" type="text" name="email" value="{defaultContentMail}" size="40" /><br />Code: Select all
if (!is_null($name) && !is_null($email) && !is_null($question) && IPCheck($_SERVER['REMOTE_ADDR']) &&
checkBannedWord(htmlspecialchars($question)) && $captcha->checkCaptchaCode($code)) {
$mail = new PMF_Mail();
$mail->unsetFrom();
$mail->setFrom($email, $name);Code: Select all
if (!is_null($question) && IPCheck($_SERVER['REMOTE_ADDR']) &&
checkBannedWord(htmlspecialchars($question))) {
$mail = new PMF_Mail();
$mail->unsetFrom();bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist