Navigation
Supportsider
Senest Online
helmuth 1 Dag
tyson 2 Dage
HenningS 2 Dage
zepder 2 Dage
olelau 2 Uger
Henrik Bendtsen 2 Uger
flj 2 Uger
orgermer 4 Uger
Didos 4 Uger
BronX 4 Uger
Besøgende
Gæster online: 8

Brugere online: 0

Antal brugere: 172
Nyeste bruger: Michael Mogensen
Se indlæg
PHP-Fusion - Danmark » PHP-Fusion version 7 » Brugerfelter v7
 Udskriv debat
Kontakt Formel
Daniel
Hej Smile

På min PHP Fusion side, har jeg en del Staff folk, men vil gerne lave en "Ny" Kontakt side, hvor man kontakte alle staff folk individuelt.

Kontakt måde skal helst være på nogenlunde samme måde som den er på standart kontakt siden.

Er der nogle der har nogle ider/løsninger ville det være fedt

Tænkte lidt på, at lave en Dropdown på selve kontakt siden, hvor man kan vælge hvem man vil kontakte
 
- Tony -
Kig lidt på denne som er fundet ved søgning, er lidt over et år gammel, måske er der lavet om i nyere versioner



/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2012 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: contact.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "maincore.php";
require_once THEMES."templates/header.php";
include LOCALE.LOCALESET."contact.php";
add_to_title($locale['global_200'].$locale['400']);
if (isset($_POST['sendmessage'])) {
   $error = "";
   $mailname = substr(stripinput(trim($_POST['mailname'])), 0, 50);
   $mailto = substr(stripinput(trim($_POST['email_to'])),0,100);
   $email = substr(stripinput(trim($_POST['email'])), 0, 100);
   $subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))), 0, 50);
   $message = descript(stripslash(trim($_POST['message'])));
   if ($mailname == "") {
      $error .= " ".$locale['420']."
\n";
   }
   if ($email == "" || !preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) {
      $error .= " ".$locale['421']."
\n";
   }
   if ($subject == "") {
      $error .= " ".$locale['422']."
\n";
   }
   if ($message == "") {
      $error .= " ".$locale['423']."
\n";
   }
   $_CAPTCHA_IS_VALID = false;
   include INCLUDES."captchas/".$settings['captcha']."/captcha_check.php";
   if ($_CAPTCHA_IS_VALID == false) {
      $error .= " ".$locale['424']."
\n";
   }
   if (!$error) {
      require_once INCLUDES."sendmail_include.php";
      if (!sendemail($settings['siteusername'],$mailto,$mailname,$email,$subject,$message)) {
         $error .= " ".$locale['425']."
\n";
      }
   }
   if ($error) {
      opentable($locale['400']);
      echo "

\n".$locale['442']."

\n".$error."
\n".$locale['443']."

\n";
      closetable();
   } else {
      opentable($locale['400']);
      echo "

\n".$locale['440']."

\n".$locale['441']."

\n";
      closetable();
   }
} else {
   opentable($locale['400']);
   echo $locale['401']."

\n";
   echo "
\n";
   echo "\n\n";
  echo "\n";
  echo "\n";
  echo "\n\n";
   echo "\n";
   echo "\n";
   echo "\n\n";
   echo "\n";
   echo "\n";
   echo "\n\n";
   echo "\n";
   echo "\n";
   echo "\n\n";
   echo "\n";
   echo "\n";
   echo "\n\n";
   echo "\n";
   echo "\n\n";
      echo "\n";
      echo "\n\n\n";
   echo "\n";
   echo "\n
Send email til:\n";
  echo "\n";
  echo "
".$locale['402']."
".$locale['403']."
".$locale['404']."
".$locale['405']."
".$locale['407']."";
   include INCLUDES."captchas/".$settings['captcha']."/captcha_display.php";
   if (!isset($_CAPTCHA_HIDE_INPUT) || (isset($_CAPTCHA_HIDE_INPUT) && !$_CAPTCHA_HIDE_INPUT)) {
      echo "
";
      echo "";
   }
   echo "
\n";
   echo "
\n
\n";
   closetable();
}
require_once THEMES."templates/footer.php";
?>

www.lemviginfo.dk/platuglerne_ikon2.gif www.lemviginfo.dk/images/lemviginfo_dk.gif [url=http://www.lemvig.info][img]http://www.lemviginfo.dk/image
 
http://www.lemvig.info/redirect.php
Daniel
Okey Super tak for hjælpen Grin
 
Spring til debat: