ist gerade angekommen
contact.php erweitern
Hallo zusammen!
Ich habe die contact.php erweitert auf contact2.php und habe die templates contact2_title, contact2_body_master usw erstellt. also alle dazugehörigen templates.
In der contact2.php sind nur die Standart Felder von contact.php.
Ich habe probiert die contact2.php zu erweitern mit folgenden Feldern:
$contact_dealer
$contact_kasse
$contact_service
$contact_name
$contact_nachname
$contact_str
$contact_plz
$contact_ort
$contact_email
$contact_tel
$contact_mobile
$contact_geb
$contact_bild
$contact_message
$contact_copy
Die ganze contact2.php sieht so aus:
Hier noch die contact2.html:
Das Ergebniss könnt ihr HIER anschauen.
Wenn man alle Felder ausgefüllt hat im Formular und danach Senden klickt kommt immer die Meldung
"Bitte füll alle Felder aus!"
Wo legt man die Pflichtfelder fest? evt liegt es an dem.. ka...
Ich denke dieser Thread wird viele interessieren da es bestimmt einige leute gibt die das Kontakt Formular erweitern möchten bzw wäre das auch mein Vorschlag für die nächste phpkit version das man Formulare erstellen/erweitern kann nach dem prinzip contact.php.
Ich hoffe das ihr mir helfen könnt.
gruss michael
Ich habe die contact.php erweitert auf contact2.php und habe die templates contact2_title, contact2_body_master usw erstellt. also alle dazugehörigen templates.
In der contact2.php sind nur die Standart Felder von contact.php.
Ich habe probiert die contact2.php zu erweitern mit folgenden Feldern:
$contact_dealer
$contact_kasse
$contact_service
$contact_name
$contact_nachname
$contact_str
$contact_plz
$contact_ort
$contact_email
$contact_tel
$contact_mobile
$contact_geb
$contact_bild
$contact_message
$contact_copy
Die ganze contact2.php sieht so aus:
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
<?php
##################################################################
# #
# #
# PHPKIT #
# -------------------------------------------- #
# Copyright (c) 2002-2003 Gersöne & Schott GbR #
# #
# #
# ############################################################## #
# #
# Diese Datei / die PHPKIT-Software ist keine Freeware! #
# Für weitere Information besuchen Sie bitte unsere Webseite #
# oder kontaktieren uns per E-Mail: #
# #
# This file / the PHPKIT-software is not freeware! #
# For further informations please vistit our website #
# or contact us via email: #
# #
# Website: http://www.phpkit.de #
# Email: info@phpkit.de #
# #
# ############################################################## #
# #
# File: /inc/public/contact.php #
# Author: Pierre Gersöne #
# Created: Version 1.6.1 - 2004-05-09 #
# Last Modified: Version 1.6.1 - 2004-05-09 #
# Description: not available for this file #
# #
# ############################################################## #
# #
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER#
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN #
# #
#YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS #
# FILE AND/OR TO REMOVE THIS INFORMATIONS #
# #
##################################################################
pkLoadLang('email');
foreach(array(
'contact',
'your',
'name',
'email',
'subject',
'message',
'copy_to_email',
'send',
'reset',
) as $l) {
$v='L_'.$l;
$$v=pkGetLang($l);
}
$L_contact_text=pkGetLang('contact_text');
$contact_email=$contact_name=$contact_subject=$contact_message=$copy_option='';
if(isset($_POST['action'])) {
$ACTION=$_POST['action'];
$contact_dealer=$ENV->_post('contact_dealer');
$contact_kasse=$ENV->_post('contact_kasse');
$contact_service=$ENV->_post('contact_service');
$contact_vorname=$ENV->_post('contact_name');
$contact_nachname=$ENV->_post('contact_nachname');
$contact_str=$ENV->_post('contact_str');
$contact_plz=$ENV->_post('contact_plz');
$contact_ort=$ENV->_post('contact_ort');
$contact_email=$ENV->_post('contact_email');
$contact_tel=$ENV->_post('contact_tel');
$contact_mobile=$ENV->_post('contact_mobile');
$contact_geb=$ENV->_post('contact_geb');
$contact_bild=$ENV->_post('contact_bild');
$contact_message=$ENV->_post('contact_message');
}
else
$ACTION='view';
if($ACTION==$_POST['send'] && emailcheck($contact_dealer) && trim($contact_kasse)!='' && trim($contact_service)!='' && trim($contact_name)!='' && trim($contact_nachname)!='' && trim($contact_str)!='' && trim($contact_plz)!='' && trim($contact_ort)!='' && trim($contact_email)!='' && trim($contact_tel)!='' && trim($contact_mobile)!='' && trim($contact_geb)!='' && trim($contact_bild)!='' && trim($contact_message)!='') {
$contact_time=formattime(time());
eval("\$contact_title=\"".pkTpl("contact2_title")."\";");
eval("\$contact_body_master=\"".pkTpl("contact2_body_master")."\";");
eval("\$contact_body_sender=\"".pkTpl("contact2_body_sender")."\";");
$header='From: '.$contact_name.' <'.$contact_email.'>';
if(mailsender('',$contact_title,$contact_body_master,$header)) {
if($_POST['contact_copy']==1)
mailsender($contact_email,$contact_title,$contact_body_sender);
pkHeaderLocation('','','event=webmaster_message_sent');
}
pkHeaderLocation('','','event=email_error');
}
if($ACTION!='view') {
if($_POST['contact_copy']==1)
$copy_option='checked';
!emailcheck($contact_email) ? eval("\$error_message=\"".pkTpl("contact2_mailerror")."\";") : eval("\$error_message=\"".pkTpl("contact2_error")."\";");
}
else {
$contact_email=$USER['email'];
$contact_name=$USER['nick'];
$contact_nachname=$ENV->_get('contact_nachname');
}
$contact_dealer=pkEntities($contact_dealer);
$contact_kasse=pkEntities($contact_kasse);
$contact_service=pkEntities($contact_service);
$contact_vorname=pkEntities($contact_name);
$contact_nachname=pkEntities($contact_nachname);
$contact_str=pkEntities($contact_str);
$contact_plz=pkEntities($contact_plz);
$contact_ort=pkEntities($contact_ort);
$contact_email=pkEntities($contact_email);
$contact_tel=pkEntities($contact_tel);
$contact_mobile=pkEntities($contact_mobile);
$contact_geb=pkEntities($contact_geb);
$contact_bild=pkEntities($contact_bild);
$contact_message=pkEntities($contact_message);
eval("\$site_body.=\"".pkTpl("contact2")."\";");
?>
|
Hier noch die contact2.html:
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
<table class="standard" cellspacing="1" cellpadding="4" width="100%">
<form method="post" action="include.php?path=contact2.php">
<tr>
<td class="heads" colspan="2"> </td>
</tr>
<tr>
$error_message
<tr>
<td class="left" valign="top" nowrap> </td>
<td class="right">
<input class="checkbox" type="checkbox" name="contact_dealer" value="$contact_dealer"/>
Dealer</td>
</tr>
<tr>
<td class="left" valign="top" nowrap> </td>
<td class="right">
<input class="checkbox" type="checkbox" name="contact_kasse" value="$contact_kasse"/>
Kasse / Empfang</td>
</tr>
<tr>
<td class="left" valign="top" nowrap> </td>
<td class="right">
<input class="checkbox" type="checkbox" name="contact_service" value="$contact_service"/>
Service / Bar</td>
</tr>
<tr>
<td class="left" width="20%" nowrap>Vorname</td>
<td class="right" width="80%">
<input type="text" name="contact_name" size="25" value="$contact_name" /></td>
</tr>
<tr>
<td class="left" width="20%" nowrap>Nachname</td>
<td class="right" width="80%">
<input type="text" name="contact_nachname" size="25" value="$contact_nachname" /></td>
</tr>
<tr>
<td class="left" width="20%" nowrap>Strasse+Nr</td>
<td class="right" width="80%">
<input type="text" name="contact_str" size="25" value="$contact_str" /></td>
</tr>
<tr>
<td class="left" width="20%" nowrap>PLZ / Ort</td>
<td class="right" width="80%">
<input type="text" name="contact_plz" size="25" value="$contact_plz" />
<input type="text" name="contact_ort" size="25" value="$contact_ort" /></td>
</tr>
<tr>
<td class="left" nowrap>E-Mailadresse</td>
<td class="right">
<input type="text" name="contact_email" size="70" value="$contact_email" /></td>
</tr>
<tr>
<td class="left" width="20%" nowrap>Telefon</td>
<td class="right" width="80%">
<input type="text" name="contact_tel" size="25" value="$contact_tel" /></td>
</tr>
<tr>
<td class="left" width="20%" nowrap>Mobile</td>
<td class="right" width="80%">
<input type="text" name="contact_mobile" size="25" value="$contact_mobile" /></td>
</tr>
<tr>
<td class="left" width="20%" nowrap>Geburtsdatum</td>
<td class="right" width="80%">
<input type="text" name="contact_geb" size="25" value="$contact_geb" /><i>(tt.mm.jjjj)</i></td>
</tr>
<tr>
<td class="left" nowrap>Bild</td>
<td class="right"><input type="file" tabindex="14" name="contact_bild" size="20" value="$contact_bild" /></td>
</td>
</tr>
<td class="left" valign="top" nowrap>Bemerkung</td>
<td class="right">
<textarea rows="5" name="contact_message" cols="34" tabindex="15" value="$contact_message"></textarea><br /><br />
<input class="checkbox" type="checkbox" name="contact_copy" value="1" $copy_option /> <font class="small">Kopie an Deine Adresse</font></td>
</tr>
<tr>
<td class="heads" colspan="2" align="center">
<input type="submit" name="action" value="$lang[send]" />
<input type="hidden" name="send" value="$lang[send]" />
<input type="reset" value="$lang[reset]" /></td>
</tr>
</form>
</table>
|
Das Ergebniss könnt ihr HIER anschauen.
Wenn man alle Felder ausgefüllt hat im Formular und danach Senden klickt kommt immer die Meldung
"Bitte füll alle Felder aus!"
Wo legt man die Pflichtfelder fest? evt liegt es an dem.. ka...
Ich denke dieser Thread wird viele interessieren da es bestimmt einige leute gibt die das Kontakt Formular erweitern möchten bzw wäre das auch mein Vorschlag für die nächste phpkit version das man Formulare erstellen/erweitern kann nach dem prinzip contact.php.
Ich hoffe das ihr mir helfen könnt.
gruss michael
ist gerade angekommen
Also: ich habe folgende dateien zur contact2.php die gleichen dazugehörigen templates wie contact.php:
pkinc/publictpl/
contact2.htm
contact2_body_master.htm
contact2_error.htm
contact2_mailerror.htm
contact2_title.htm
pkinc/public
contact2.php
Die gleichen templates existieren schon halt ohne 2 also contact_body_master.htm zb.
Was interessant wäre ob es überhaupt möglich ist die felder von contact.php zu erweitern mit dem gleichen prinzip! wie schon oben von mir versucht.
Ich hoffe das es etwas verständlicher ist.
HIER könnt ihr ein beispiel downloaden. ist von Freddie. sind einfach die standart Felder wie bei contact.php.
Ich hoffe das man darauf aufbauen kann mit mehr feldern.
gruss michael
pkinc/publictpl/
contact2.htm
contact2_body_master.htm
contact2_error.htm
contact2_mailerror.htm
contact2_title.htm
pkinc/public
contact2.php
Die gleichen templates existieren schon halt ohne 2 also contact_body_master.htm zb.
Was interessant wäre ob es überhaupt möglich ist die felder von contact.php zu erweitern mit dem gleichen prinzip! wie schon oben von mir versucht.
Ich hoffe das es etwas verständlicher ist.
HIER könnt ihr ein beispiel downloaden. ist von Freddie. sind einfach die standart Felder wie bei contact.php.
Ich hoffe das man darauf aufbauen kann mit mehr feldern.
gruss michael
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Sporty« (23. Januar 2009, 02:10)
ist gerade angekommen
hat jemand ahnung oder evt einen hinweis? ist wichtig für mich ansonsten muss ich einen anderen formmailer suchen.
Ein tipp für mich an die Coders hier wäre ein Formular Generator Script im Admin cpl für phpkit zu coden.
zb:
Das ganze sollte funktionieren wie die contact.php denke ich. Man sollte so einfach Formulare generieren können
und die dan verlinken an die jeweiligen verweise.
gruss michael
Ein tipp für mich an die Coders hier wäre ein Formular Generator Script im Admin cpl für phpkit zu coden.
zb:
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 |
Name Feld Art des Feldes: Einzeiliges Textfeld Mehrzeiliges Textfeld Auswahlliste (Drop-Down) Radiobutton (Optionsfeld) Checkbox (Auswahlkästchen) Plichtfelder setzen email adressen: an welche benutzer bzw emails soll das Formular gesendet werden? |
Das ganze sollte funktionieren wie die contact.php denke ich. Man sollte so einfach Formulare generieren können
und die dan verlinken an die jeweiligen verweise.
gruss michael
ist gerade angekommen
Hallo
Dies mit dem addon war nur ein vorschlag/idee. Ich bin interessiert an einem Kontaktformular... es muss nicht wie die contact.php sein ich nehme an das die niemand erweiter hat aber etwas anderes benutzt. Wie habt ihr das bei euch gelöst wenn ihr ein weiteres Formular dazu gemacht habt?
mfg
Dies mit dem addon war nur ein vorschlag/idee. Ich bin interessiert an einem Kontaktformular... es muss nicht wie die contact.php sein ich nehme an das die niemand erweiter hat aber etwas anderes benutzt. Wie habt ihr das bei euch gelöst wenn ihr ein weiteres Formular dazu gemacht habt?
mfg
Ähnliche Themen
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Per Knopfdruck eine PN an den Admin
(2. August 2008, 14:57)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
KitNoSpam_v2 & HackBlock_v2
(8. Januar 2008, 17:22)


