vikaspa Posted March 7, 2007 Share Posted March 7, 2007 want to send following form by email.... Can i send it .... Further Can I send auto response (to the person who fills up the form) and in case we need to store the information entered in database what changes I need to make vis-a-vis norm form on web site I am asking this because the form wil be sent via email and will be filled us online and not on my web site Please please please help <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? $MODULE="enquirys.php"; $SITENAME="sealretailworld.com"; $SITEMAIL="[email protected], [email protected], [email protected]"; include("includes/config.inc.php"); include("includes/getsqlvaluestring.inc.php"); include("includes/class.phpmailer.php"); $FormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $FormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } $showform='Y'; if(isset($_POST['Submit'])){ $showform='N'; echo $showform; $subject="New enquiry has been received on $SITENAME"; $message="Enquiry received on $SITENAME <br><br> The details are given below<br> Name: ".$_POST['name']."<br> Address: ".$_POST['address']."<br> Link to comment https://forums.phpfreaks.com/topic/41568-please-help-send-enquiry-form-by-email-and-store-details/ Share on other sites More sharing options...
chronister Posted March 7, 2007 Share Posted March 7, 2007 want to send following form by email.... What Form? Can i send it .... ????? Further Can I send auto response (to the person who fills up the form) Yes, use the mail() function and in case we need to store the information entered in database what changes I need to make vis-a-vis norm form on web site You should not have to make any changes. I am asking this because the form wil be sent via email and will be filled us online and not on my web site If I understand you correctly, you are going to email someone the form and they fill it out in the email, then submit it to you? If this is the case, I don't see any changes that need be made database wise. You will have to make the form submit to a page onto your site though. You will not be able to use $_SERVER['PHP_SELF'] as you have it now. The form will have to be completely html. You will not be able to use PHP in the form because it will not run from someones email system. You will have to Post the form to your site and have a page on your site that actually processes the form and then emails back to the person. Link to comment https://forums.phpfreaks.com/topic/41568-please-help-send-enquiry-form-by-email-and-store-details/#findComment-201436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.