Turkish and English contact form.

Here's a forum to share the forms that you create. Show the code and add a picture - or a link to the form on the web.

Turkish and English contact form.

Postby ozzy on Wed Sep 19, 2007 4:39 am

Turkish and English Contact form with Thank you message and E-mail template...
//insert to Form HTML

Code: Select all
<?php
global $mosConfig_lang;
if($mosConfig_lang == 'turkish'){
?>
<fieldset>
<legend><strong>İletişim</strong></legend>
<p>Üyelik ile ilgili sorularınızı buradan gönderebilirsiniz.</p>
<p><strong>IELTS</strong> Examiner<BR>
<strong>OZZYENGLISH</strong></p>
<table width="443" border="0">
  <tr>
    <td width="34"><img src="images/form/120px-Crystal_Clear_app_kuser.png" width="33" height="33" alt="name"></td>
    <td width="68"><div align="left"><strong>Adınız</strong></div></td>
    <td width="327"><input type="text" name="name" size="42" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_Login_Manager.png" width="33" height="33" alt="surname"></td>
    <td><div align="left"><strong>Soyadınız</strong></div></td>
    <td><input type="text" name="surname" size="42" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_kfm_home.png" width="33" height="33" alt="city"></td>
    <td><div align="left"><strong>Sehir</strong></div></td>
    <td><input type="text" name="city" size="25" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_internet.png" width="33" height="33" alt="country"></td>
    <td><div align="left"><strong>Ülke</strong></div></td>
    <td><input type="text" name="city2" size="25" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_xfmail.png" width="33" height="33" alt="e-mail"></td>
    <td><div align="left"><strong>E-mail</strong></div></td>
    <td><input type="text" name="email" size="42" /></td>
  </tr>
</table>
</fieldset>
<fieldset>
<legend><strong>Nereden</strong></legend>

<table width="601" border="0">
  <tr>
    <td width="33"><img src="images/form/120px-Crystal_Clear_app_ktalkd.png" width="33" height="33" alt="where"></td>
    <td width="552"><span class="style1"><strong>Ozzyenglish Sitesini  nereden duydunuz?</strong></span></td>
  </tr>
  <tr>
    <td> </td>
    <td><span class="style1">
      <input type="text" name="where_hear" size="42">
    </span></td>
  </tr>
</table>
</fieldset>
<fieldset>
<legend><strong>Yorum</strong></legend>
<table width="200" border="0">
  <tr>
    <td width="34"><strong><img src="images/form/120px-Crystal_Clear_action_easymoblog.png" alt="comment" width="33" height="33" align="middle"></strong></td>
    <td width="156"><strong>Yorumunuz:</strong></td>
  </tr>
</table>
<p class="style1">
  <textarea COLS="30" NAME="other_info0" id="ff_elem205" style="height: 63; width: 612" rows="5"></textarea>
</fieldset>

<fieldset>
<legend><strong>Gönder</strong></legend>

<button type="submit" class="button"><?php echo GÖNDER; ?></button>   

         <button type="reset" class="button"><?php echo TEMIZLE; ?></button>


<?php if(!$my->id){ ?> 
{imageverification}
<?php } ?>
</fieldset>
<script language="javascript">
document.ChronoContact_form.fromname.focus();

</fieldset>

<?php
}else{
?>

<fieldset>
<legend><strong>Contact</strong></legend>
<p>If you have any questions about the membership feel free to fill the form below. </p>
<p><strong>IELTS</strong> Examiner<BR>
<strong>OZZYENGLISH</strong></p>
<table width="443" border="0">
  <tr>
    <td width="34"><img src="images/form/120px-Crystal_Clear_app_kuser.png" width="33" height="33" alt="name"></td>
    <td width="68"><div align="left"><strong>Name</strong></div></td>
    <td width="327"><input type="text" name="name" size="42" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_Login_Manager.png" width="33" height="33" alt="surname"></td>
    <td><div align="left"><strong>Surname</strong></div></td>
    <td><input type="text" name="surname" size="42" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_kfm_home.png" width="33" height="33" alt="city"></td>
    <td><div align="left"><strong>City</strong></div></td>
    <td><input type="text" name="city" size="25" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_internet.png" width="33" height="33" alt="country"></td>
    <td><div align="left"><strong>Country</strong></div></td>
    <td><input type="text" name="city2" size="25" /></td>
  </tr>
  <tr>
    <td><img src="images/form/120px-Crystal_Clear_app_xfmail.png" width="33" height="33" alt="e-mail"></td>
    <td><div align="left"><strong>E-mail</strong></div></td>
    <td><input type="text" name="email" size="42" /></td>
  </tr>
</table>
</fieldset>
<fieldset>
<legend><strong>Where</strong></legend>

<table width="601" border="0">
  <tr>
    <td width="33"><img src="images/form/120px-Crystal_Clear_app_ktalkd.png" width="33" height="33" alt="where"></td>
    <td width="552"><span class="style1"><strong>Where did you hear Ozzyenglish web site?</strong></span></td>
  </tr>
  <tr>
    <td> </td>
    <td><span class="style1">
      <input type="text" name="where_hear" size="42">
    </span></td>
  </tr>
</table>
</fieldset>
<fieldset>
<legend><strong>Comment</strong></legend>
<table width="200" border="0">
  <tr>
    <td width="34"><strong><img src="images/form/120px-Crystal_Clear_action_easymoblog.png" alt="comment" width="33" height="33" align="middle"></strong></td>
    <td width="156"><strong>Comment:</strong></td>
  </tr>
</table>
<p class="style1">
  <textarea COLS="30" NAME="other_info0" id="ff_elem205" style="height: 63; width: 612" rows="5"></textarea>
</fieldset>

<fieldset>
<legend><strong>Send</strong></legend>

<button type="submit" class="button"><?php echo SEND; ?></button>   

         <button type="reset" class="button"><?php echo CLEAR; ?></button>


<?php if(!$my->id){ ?> 
{imageverification}
<?php } ?>
</fieldset>
<script language="javascript">
document.ChronoContact_form.fromname.focus();

</fieldset>

<?php
}
?>


//insert to On Submit code - after sending email
Code: Select all
<?php
$recipient = $_POST['email'];
$html_message = "<p>Hi,</p><p>Thank you for filling out our contact form.</p><p> If you have any question or
other comments, please let us know.</p><p>Ozzyenglish<br />ADMIN</p><p>Key to success</p>";
$subject = $subject;
mosMail($from, $fromname, $recipient, $subject, $html_message, true, NULL, NULL, NULL, NULL, NULL );
?>


// insert to E-mail template
Code: Select all
<table width="499" border="1">
  <tr>
    <td width="82" bgcolor="#33FFFF"><strong>Name</strong></td>
    <td width="401">{name}</td>
  </tr>
  <tr>
    <td bgcolor="#33FFFF"><strong>Surname</strong></td>
    <td>{surname}</td>
  </tr>
  <tr>
    <td bgcolor="#33FFFF"><p><strong>City</strong></p>
    <
ozzyenglish
ozzy
Fresh Boarder
 
Posts: 6
Joined: Wed Sep 12, 2007 10:24 pm

Re:Turkish and English contact form.

Postby admin on Wed Sep 19, 2007 7:00 am

Hi Ozzy,

Thanks for sharing your form ;) I have deleted the other 2 duplicated posts and edited this one to put the code tags, could you please chack that your code is complete now ?

Thanks!!

Max
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Complete

Postby ozzy on Wed Sep 19, 2007 4:53 pm

Hi,

Yes it is complete.Thank you.:)
Image
ozzyenglish
ozzy
Fresh Boarder
 
Posts: 6
Joined: Wed Sep 12, 2007 10:24 pm


Return to Share your forms with others

Who is online

Users browsing this forum: No registered users and 1 guest