Author Topic: Embed kontak form  (Read 8450 times)

0 Members and 2 Guests are viewing this topic.

KGF

  • ezCustomer
  • *****
  • Posts: 100
Embed kontak form
« on: September 05, 2014, 03:35:18 am »
Embed kontak form
I want to embed a contact form
but the user should receive a copy of the form

what is wrong with my form?
http://www.photoplaca.com/pages/Impressum-Kontakt.php
----------------------------------------------------------------------------------------------------------------------------
<table width="100%" border="1px solid #000000" cellpadding="3" cellspacing="1">
<td>
<div><b>Kontakt-Formular</b></div>
<br />
<form method="post" action="http://www.photoplaca.com/cgi-bin/FormMail.pl" accept-charset="ISO-8859-1" onsubmit="var originalCharset = document.charset; document.charset = 'ISO-8859-1'; window.onbeforeunload = function () {document.charset=originalCharset;};">
<div align="left" width="200px" ><b>Anrede*</div>
<div align="left"><select style="width:200px" name="Anrede"></div>
<option value="Herr">Herr</option>
<option value="Frau">Frau</option>
<option value="Firma">Firma</option>
</select></div>
<br />
<div align="left" width="200px" ><b>Name - Nachname*</b></div>
<div align="left"><input style="width:200px" name="Name-Nachname"></div>
<br />
<div align="left" width="200px" ><b>Strasse - Nr*</b></div>
<div align="left"><input style="width:200px" name="Strasse-Nr"></div>
<br />
<div align="left" width="200px" ><b>Postleitzahl - Ort*</b></div>
<div align="left"><input style="width:200px" name="Postleitzahl-Ort"></div>
<br />
<div align="left" width="200px" ><b>Telefon - Mobil*</b></div>
<div align="left"><input style="width:200px" name="Telefon-Mobil"></div>
<br />
<div align="left" width="200px" ><b>Email - Adresse*</b></div>
<div align="left"><input style="width:200px" name="email" /></div>
<br />
<div align="left" width="200px" ><b>Betreff*</b></div>
<div align="left"><input style="width:200px" name="Betreff"></div>
<br />
<div align="left" width="200px" ><b>Nachricht*</b></div>
<div align="left"><textarea cols="40" rows="10" name="Nachricht"></textarea></div>
<br />
<div align="left" width="200px" ><b>Newsletter*</b></div>
<div align="left"><input type="radio" style="width:20px" name="Newsletter" value="Ja" checked="checked" />Ja<br />
<div align="left"><input type="radio" style="width:20px" name="Newsletter" value="Nein" checked="checked" />Nein<br />
<br />
<div align="left" width="200px" ><b>AGB*<a href="./Custom-Impressum-Agb.php" target="_blank" style="text-decoration: none;"> Lesen und Akzeptieren</a></b></div>
<div align="left"><input type="radio" style="width:20px" name="Agb" value="Ja" checked="checked" />Ja<br />
<div align="left"><input type="radio" style="width:20px" name="Agb" value="Nein" checked="checked" />Nein<br />
<br />
<div align="left"><input type="submit" style="width: 150px" value="Senden" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" style="width: 150px" value="Löschen" /></div>
<input type="hidden" name="recipient" value="service@photoplaca.com" />
<input type="hidden" name="subject" value="Kontakt-Formular" />
<input type="hidden" name="redirect" value="http://photoplaca.com" />
<input type="hidden" name="missing_fields_redirect" value="http://photoplaca.com" />
<input type="hidden" name="required" value="Anrede,Name-Nachname,Strasse-Nr,Postleitzahl-Ort,Telefon-Mobil,email,Betreff,Nachricht,Newsletter,Agb" />
</form>
</div>
</td>
</table>
-----------------------------------------------------------------------------------------------------------------------------
« Last Edit: September 05, 2014, 03:38:16 am by KGF »

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: Embed kontak form
« Reply #1 on: September 05, 2014, 12:08:10 pm »
Looks like your  onsubmit code but i fixed some html too updated code below
Code: [Select]
<table width="100%" border="1px solid #000000" cellpadding="3" cellspacing="1">
<tr>
<td>
<div><b>Kontakt-Formular</b></div>
<br />
<form method="post" action="http://www.photoplaca.com/cgi-bin/FormMail.pl" accept-charset="ISO-8859-1">
<div align="left" width="200px" ><b>Anrede*</b></div>
<div align="left"><select style="width:200px" name="Anrede">
<option value="Herr">Herr</option>
<option value="Frau">Frau</option>
<option value="Firma">Firma</option>
</select></div>
<br />
<div align="left" width="200px" ><b>Name - Nachname*</b></div>
<div align="left"><input style="width:200px" name="Name-Nachname"></div>
<br />
<div align="left" width="200px" ><b>Strasse - Nr*</b></div>
<div align="left"><input style="width:200px" name="Strasse-Nr"></div>
<br />
<div align="left" width="200px" ><b>Postleitzahl - Ort*</b></div>
<div align="left"><input style="width:200px" name="Postleitzahl-Ort"></div>
<br />
<div align="left" width="200px" ><b>Telefon - Mobil*</b></div>
<div align="left"><input style="width:200px" name="Telefon-Mobil"></div>
<br />
<div align="left" width="200px" ><b>Email - Adresse*</b></div>
<div align="left"><input style="width:200px" name="email" /></div>
<br />
<div align="left" width="200px" ><b>Betreff*</b></div>
<div align="left"><input style="width:200px" name="Betreff"></div>
<br />
<div align="left" width="200px" ><b>Nachricht*</b></div>
<div align="left"><textarea cols="40" rows="10" name="Nachricht"></textarea></div>
<br />
<div align="left" width="200px" ><b>Newsletter*</b></div>
<div align="left"><input type="radio" style="width:20px" name="Newsletter" value="Ja" checked="checked" />Ja<br />
<div align="left"><input type="radio" style="width:20px" name="Newsletter" value="Nein" checked="checked" />Nein<br />
<br />
<div align="left" width="200px" ><b>AGB*<a href="./Custom-Impressum-Agb.php" target="_blank" style="text-decoration: none;"> Lesen und Akzeptieren</a></b></div>
<div align="left"><input type="radio" style="width:20px" name="Agb" value="Ja" checked="checked" />Ja<br />
<div align="left"><input type="radio" style="width:20px" name="Agb" value="Nein" checked="checked" />Nein<br />
<br />
<div align="left"><input type="submit" style="width: 150px" value="Senden" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" style="width: 150px" value="Löschen" /></div>
<input type="hidden" name="recipient" value="service@photoplaca.com" />
<input type="hidden" name="subject" value="Kontakt-Formular" />
<input type="hidden" name="redirect" value="http://photoplaca.com" />
<input type="hidden" name="missing_fields_redirect" value="http://photoplaca.com" />
<input type="hidden" name="required" value="Anrede,Name-Nachname,Strasse-Nr,Postleitzahl-Ort,Telefon-Mobil,email,Betreff,Nachricht,Newsletter,Agb" />
</form>
</div>
</td>
</tr>
</table>

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: Embed kontak form
« Reply #2 on: October 22, 2014, 12:29:58 am »
hello,
I have a problem with the contact-form:
the domain operator receive an email - that is correct.

but the user should also receives an email

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: Embed kontak form
« Reply #3 on: October 22, 2014, 04:45:34 am »
You would need to change <input type="hidden" name="recipient" value="service@photoplaca.com" />

Or alter the script to include the email from
<div align="left" width="200px" ><b>Email - Adresse*</b></div>
<div align="left"><input style="width:200px" name="email" /></div>

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: Embed kontak form
« Reply #4 on: October 22, 2014, 05:07:55 am »
Sorry, I do not understand,
what should I where change

ezCommunitySuite

  • Administrator
  • *****
  • Posts: 241
    • ezCommunitySuite
Re: Embed kontak form
« Reply #5 on: October 22, 2014, 05:30:44 am »
Either the FormMail.pl to send email to the email from the form field or write a javascript to change recipient

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: Embed kontak form
« Reply #6 on: October 22, 2014, 07:57:13 am »
it does not work  :'(

KGF

  • ezCustomer
  • *****
  • Posts: 100
Re: Embed kontak form
« Reply #7 on: October 29, 2014, 03:44:42 am »
please can you help me with the javascript?

Please, I need your help

ezgallery should have of basic a contact form
« Last Edit: November 14, 2014, 02:10:23 am by KGF »

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
5719 Views
Last post August 15, 2014, 02:08:18 am
by KGF
18 Replies
41223 Views
Last post June 03, 2015, 05:00:18 am
by KGF

© 2024 ezCommunitySuite