Formularversand

Fragen zum Erstellen von Templates für webEdition.
mobby
Senior Member
Beiträge: 1164
Registriert: Do 1. Sep 2005, 05:07

Formularversand

Beitragvon mobby » Mi 5. Okt 2016, 01:52

Hallo,
ich würde gern ein Formular über

Code: Alles auswählen

<form id="contact_form" method="post" name="contactForm" action="/senden.php">
versenden. Leider tut sich bei absenden des Formular nix, es wird also nicht die senden.php aufgerufen. Wenn ich id="contact_form" rausnehme, klappt es. Ich benötige aber die id, um eine Prüfung der Formularfelder durchzuführen.
Hat jemand einen Tipp?
Viele Grüße
Mobby

webEdition 8.1.0 (Ahlberg) (8.1.0.0, Revision: 10599)

Benutzeravatar
blickfang
webEdition Partner
webEdition Partner
Beiträge: 812
Registriert: Mo 15. Dez 2003, 16:00
Kontaktdaten:

Re: Formularversand

Beitragvon blickfang » Mi 5. Okt 2016, 08:50

Hi,

hast Du ein we:ifNotWebEdition um das Formular rum? Und warum kannst Du kein we:form verwenden? Eine id bekommst du da auch vergeben indem du das Attribut nameid="xy" setzt.

Viele Grüße
Timo
webEdition Partner - https://www.blickfang-media.com
Ehemals im Vorstand des webEdition e.V.

mobby
Senior Member
Beiträge: 1164
Registriert: Do 1. Sep 2005, 05:07

Re: Formularversand

Beitragvon mobby » Mi 5. Okt 2016, 09:16

Ein we:ifNotWebEdition habe ich nicht rum.

Nehme ich

Code: Alles auswählen

<we:form id="151" method="post"  class="customform">
sendet er das Formular, bei

Code: Alles auswählen

<we:form id="151" nameid="contact_form" method="post"  class="customform">
nicht.
Viele Grüße
Mobby

webEdition 8.1.0 (Ahlberg) (8.1.0.0, Revision: 10599)

Benutzeravatar
blickfang
webEdition Partner
webEdition Partner
Beiträge: 812
Registriert: Mo 15. Dez 2003, 16:00
Kontaktdaten:

Re: Formularversand

Beitragvon blickfang » Mi 5. Okt 2016, 10:06

hast Du dann einen jvascript Fehler oder etwas anderes im Fehlerprotokoll? Das müsse so eigentlich schon klappen
webEdition Partner - https://www.blickfang-media.com
Ehemals im Vorstand des webEdition e.V.

mobby
Senior Member
Beiträge: 1164
Registriert: Do 1. Sep 2005, 05:07

Re: Formularversand

Beitragvon mobby » Mi 5. Okt 2016, 10:18

Ich Fehlerprotokoll steht das:

Code: Alles auswählen

Error type: 	

Deprecated notice

Error message: 	

Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor

Script name: 	

webEdition/we/include/we_classes/we_autoloader.class.php

Line number: 	

230

Backtrace: 	

#0 error_handler called at [webEdition/we/include/we_classes/we_autoloader.class.php:230]
#1 include called at [webEdition/we/include/we_classes/we_autoloader.class.php:230]
#2 autoload called at [:]
#3 spl_autoload_call called at [webEdition/we/include/we_classes/rpc/we_rpc_genericJSONView.class.php:28]
#4 getResponse called at [webEdition/we/include/we_classes/rpc/we_rpc_cmdShell.class.php:110]
#5 getResponse called at [webEdition/rpc.php:61]

Source code around: 	

webEdition/we/include/we_classes/we_autoloader.class.php:
229: 		if(isset(self::$fallBack[$class_name])){
230: 			include(WEBEDITION_PATH . self::$fallBack[$class_name]);
231: 			return true;
232: 		}
233: 		//don't load zend extension, if file is in system or fallback
234: 		self::loadZend($class_name);

----------------------------------------------------------
webEdition/we/include/we_classes/we_autoloader.class.php:
229: 		if(isset(self::$fallBack[$class_name])){
230: 			include(WEBEDITION_PATH . self::$fallBack[$class_name]);
231: 			return true;
232: 		}
233: 		//don't load zend extension, if file is in system or fallback
234: 		self::loadZend($class_name);

----------------------------------------------------------
webEdition/we/include/we_classes/rpc/we_rpc_genericJSONView.class.php:
27: 	function getResponse($response){
28: 		$json = new Services_JSON();
29: 		return $json->encode($response);
30: 	}
31: 
32: }

----------------------------------------------------------
webEdition/we/include/we_classes/rpc/we_rpc_cmdShell.class.php:
109: 	function getResponse(){
110: 		return $this->View->getResponse($this->Response);
111: 	}
112: 
113: 	function executeInternalCmd(&$cmd){
114: 		$cmd = $this->createCmd($cmd);

----------------------------------------------------------
webEdition/rpc.php:
60: 	$shell->executeCommand();
61: 	echo $shell->getResponse();
62: } else { // there was an error in initializing the command
63: 	dieWithError($shell->getErrorOut(), $protocol);
64: }
65: 

----------------------------------------------------------

Request: 	

[protocol] => json
[cmd] => Ping
[view] => Ping
Viele Grüße
Mobby

webEdition 8.1.0 (Ahlberg) (8.1.0.0, Revision: 10599)

Benutzeravatar
blickfang
webEdition Partner
webEdition Partner
Beiträge: 812
Registriert: Mo 15. Dez 2003, 16:00
Kontaktdaten:

Re: Formularversand

Beitragvon blickfang » Mi 5. Okt 2016, 10:25

hm, ein notice dürfte eigentlich nicht dazu führen, dass nicht versendet wird...
Welche Version nutzt Du aktuell?
webEdition Partner - https://www.blickfang-media.com
Ehemals im Vorstand des webEdition e.V.

mobby
Senior Member
Beiträge: 1164
Registriert: Do 1. Sep 2005, 05:07

Re: Formularversand

Beitragvon mobby » Mi 5. Okt 2016, 10:27

Die aktuelle 7.0.2 (7.0.2.0, SVN-Revision: 12643)
Viele Grüße
Mobby

webEdition 8.1.0 (Ahlberg) (8.1.0.0, Revision: 10599)


Zurück zu „webEdition Templates erstellen (we:Tags)“

Wer ist online?

Mitglieder in diesem Forum: Semrush [Bot] und 28 Gäste