Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

email contact form issue


3 replies to this topic

#1 bksbeat

  • Community Member
  • 138 posts
  • Real Name:Gary

Posted 24 June 2011, 21:53

Okay,I created this
http://www.nontando.com/zim.php
On the same page I have created a email contact form that the customer can complete. You can test it, but when the user presses the send form, a Internet Explorer message comes up telling the user,"submitting this form will reveal your email address.....when you bypass this by pressing ok, your email software comes up, eg. outlook express. What I am looking to do is have to all automated similar to the way contact_us.php works - seamless!
This is what my code looks like. It is very basic as it is a pretty simple form, but if anyone can give me advice how it can be automated and is it possible to incorporate code that ensures the emails is trigerred without any ie prompts and/or email software popping up. It worls lilke that with contact_us.php
Thanks, Gary


<?php
/*
  $Id: conditions.php,v 1.3 2001/12/20 14:14:14 dgw_ Exp $

  Nontando - Decor, Gifts and Art from Africa!
  http://www.nontando.com

  Copyright (c) 2007,2008 Nontando

  Released under the GNU General Public License
*/

define('HEADING_TITLE', 'Zimbabwe Packages');
define('NAVBAR_TITLE', 'Zimbabwe Packages');

define('TEXT_INFORMATION', '
<font face="Arial, Helvetica, sans-serif" size="2"> Welcome to our Zimbabwe Packages! <p>
The following PDF files provide you with the itinerary for each package:
</font> </p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><b>CLASSIC VICTORIA FALLS </b></font></p>
<a target="_blank" href="Classic_Victoria_Falls.pdf">Click here to download Classic Victoria Falls itinerary</a>

<p><font face="Arial, Helvetica, sans-serif" size="2"><b>WILDLIFE AND WATERFALLS </b></font></p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><b>ZAMBIA AND ZIMBABWE CIRCUIT </b></font></p>

<BR>
<p><font face="Arial, Helvetica, sans-serif" size="2"><b>Please complete the contact form below and we will respond as soon as possible: </b></font></p>

<CENTER>
<form action="mailto:info@nontando.com" method="get" enctype="text/plain">
  <p>Name: <input type="text" name="name" /></p>
  <p>Email: <input type="text" name="email" /></p>
  <p>Comments:<br />
  <textarea cols="30" rows="20" name="comments"></textarea></p>
  <p><input type="submit" name="submit" value="Send" />
  <input type="reset" name="reset" value="Clear Form" /></p>
</form> 




');
?>


#2 knifeman

  • Community Member
  • 1,537 posts
  • Real Name:Tim
  • Gender:Male

Posted 24 June 2011, 23:08

I have this on a non osc site. May work within osc, but i do not know for sure:
http://formtoemail.com/formtoemail_free_version.php

Tim

#3 bksbeat

  • Community Member
  • 138 posts
  • Real Name:Gary

Posted 24 June 2011, 23:31

View Postknifeman, on 24 June 2011, 23:08, said:

I have this on a non osc site. May work within osc, but i do not know for sure:
http://formtoemail.com/formtoemail_free_version.php

Tim
Thanks Tim. This code is going into an existing php file, so I am not exactly how formtoemail.php
Also, where would my email address where the email must go, i.e. info@nontando.com, go.
I read the piece re. email address insertion, did not make sense to me?


<form action="FormToEmail.php" method="post">
<table border="0" style="background:#ececec" cellspacing="5">
<tr align="left"><td>Name</td><td><input type="text" size="30" name="name"></td></tr>
<tr align="left"><td>Email address</td><td><input type="text" size="30" name="email"></td></tr>
<tr align="left"><td valign="top">Comments</td><td><textarea name="comments" rows="6" cols="30"></textarea></td></tr>
<tr align="left"><td>&nbsp;</td><td><input type="submit" value="Send"><font face="arial" size="1">&nbsp;&nbsp;<a href="http://FormToEmail.com">PHP Form</a> by FormToEmail.com</font></td></tr>
</table>
</form>



#4 bksbeat

  • Community Member
  • 138 posts
  • Real Name:Gary

Posted 25 June 2011, 03:05

Tim,

I got it to work.
http://www.nontando.com/zim.php

A few things;

1 Did you tweak the form, eg. additional fields, change layout or are you unable to?
2. Once the user enter the data and send the email, this screen appears (test being the name I used)
Thank you test
Your message has been sent
Click here to continue

FormToEmail by FormToEmail.com


Am I able to change that message "click here to continue" to "click here to return to Nontando website"

I will play around with the form tomorrow and see if get lucky...