Observer11
asked on
Why am i not receiving the form submission after submitting my information in the form?
At the url: www.cafamilypetexpos.com  -- if you click on the yellow 2.00 off cupon, it takes you to the form i created. I input the desired email recepient in the form.config.php file but never receive anything after submitting information from the form.
Is there something im missing?
Thanks
Is there something im missing?
Thanks
ASKER
I'm not quite sure i understand what to do here. Are you wanting me to open my phpmailer-fe.php file and input that code after the mail() function? If so I dont see "mail()" anywhere in the code of this file. Am i looking at the right source for this code?
Thanks
Thanks
I see that your form has:
<input type="hidden" value="form.html" name="referer" />
perhaps it should be:
<input type="hidden" value="coupon_form.html" name="referer" />
If the problem persists, you will need to post the code to phpmailer-fe.php
ASKER
oh ok, ya i changed it but still dont think its working, here is the code for the phpmailer-fe.php dfile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.green { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color:#669900;
text-decoration: none;
}
.red { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color: #FF0000;
text-decoration: none;
}
body {
background-color: #0066CC;
}
.style1 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" >
<tr>
<td colspan="2" valign="top" ></td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
<tr>
<td colspan="2" valign="top" ><table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><img src="_src/ok.png" border="0" /> </td>
<td class="green">Thank you for your submission.</td>
</tr>
<tr>
<td> </td>
<td><span class="style1">Your printable cupon will be emailed to you shortly! </span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="50" valign="top" class="red" align="center"> </td>
<td valign="middle" class="red"> </td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
</table>
</body>
</html>
ASKER
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.green { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color:#669900;
text-decoration: none;
}
.red { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color: #FF0000;
text-decoration: none;
}
body {
background-color: #0066CC;
}
.style1 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" >
<tr>
<td colspan="2" valign="top" ></td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
<tr>
<td colspan="2" valign="top" ><table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><img src="_src/ok.png" border="0" /> </td>
<td class="green">Thank you for your submission.</td>
</tr>
<tr>
<td> </td>
<td><span class="style1">Your printable cupon will be emailed to you shortly! </span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="50" valign="top" class="red" align="center"> </td>
<td valign="middle" class="red"> </td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
</table>
</body>
</html>
>>here is the code for the phpmailer-fe.php dfile
No. You provided the HTML that the browser gets AFTER the webserver has processed the form submission. You need to post the actual php code. The php is executed on the server as soon as you submit the form and it sends the email from the server, NOT from the browser. So you need to find what's wrong on the php code.
No. You provided the HTML that the browser gets AFTER the webserver has processed the form submission. You need to post the actual php code. The php is executed on the server as soon as you submit the form and it sends the email from the server, NOT from the browser. So you need to find what's wrong on the php code.
ASKER
Ok. I think i understand. So are you still wanting certain code from a file i have?
Is this what you need?
Is this what you need?
<?php
if ( !defined('VERSION') && !$_POST ) {
// this code will eliminate anyone attempting to load this script from the
// browser address bar ... allowing that would be a security threat
echo "Sorry, cannot process ....<br />";
exit();
}
/* PHPMailer-FE SETTINGS - these variables are in order of appearance in PHPMailer-FE, value is default */
/* to use these, uncomment the variable (the double slashes at the front) and add your own settings after the equal sign */
$_POST['recipient'] = "design@mixvegasmedia.com";
//$_POST['cc'] = "name1@worxteam.com,name2@worxteam.com";
//$_POST['bcc'] = "name3@worxteam.com,name4@worxteam.com";
//$_POST['email_bad_array'] = "\r|\n|to:|cc:|bcc:";
//$_POST['subject'] = 'Form Submission' . ' from: ' . $_SERVER['HTTP_HOST'];
//$_POST['useWorxTuring'] = false;
//$_POST['PHPMailerLocation'] = "class.phpmailer.php";
//$_POST['referers'] = array ($_SERVER['HTTP_HOST']);
//$_POST['env_report'] = array (); // disables
//$_POST['env_report'] = array ('REMOTE_HOST','REMOTE_USER','REMOTE_ADDR','HTTP_USER_AGENT','HTTP_REFERER');
//$_POST['useEnvRpt'] = false;
//$_POST['bannedEmails'] = ''; //array ('*@anydomain.com', '*@otherdomain.com');
//$_POST['redirectOnBan'] = "http://" . $_SERVER['HTTP_HOST'];
//$_POST['allowedFileTypes'] = "doc|xls|pdf|jpg|jpeg|png|gif|zip|rar|gz";
//$_POST['replyEmailOnFail'] = "replyemailfailed.html";
//$_POST['replyEmailOnSuccess'] = "replyemailsuccess.html";
//$_POST['redirectOnFail'] = "failed.html";
//$_POST['useAsAutoResponder'] = true; // default is false - true disables $recipient receiving form value email
//$_POST['attach_local_name'] = "/path/to/document.pdf";
//$_POST['attach_local_type'] = "application/pdf";
//$_POST['reserved_key_words'] = "keyword1,keyword2,keyword3";
/* Variables normally passed in the form - NO DEFAULTS ASSOCIATES WITH THESE, EXAMPLES ONLY */
//$_POST['redirect'] = "thankyou.html";
//$_POST['required'] = "frmFirstname,frmLastname,email";
//$_POST['sort'] = "alphabetic";
//$_POST['print_blank_fields'] = "1"; // or true;
//$_POST['title'] = "Feedback Form Results";
//$_POST['return_link_url'] = "http://yourdomain.com/main.html";
//$_POST['return_link_title'] = "Back to Main Page";
//$_POST['missing_fields_redirect'] = "http://yourdomain.com/error.html";
//$_POST['background'] = "http://www.yourdomain.com/imgs/image.gif";
//$_POST['bgcolor'] = "#FFFFFF";
//$_POST['text_color'] = "#000000";
//$_POST['link_color'] = "#FF0000";
//$_POST['vlink_color'] = "#0000FF";
//$_POST['alink_color'] = "#0000FF";
/* Notes
1. The settings above here will over-ride any $_POST variables with the same name
in the form.
2. The settings above here will also over-ride any variables of the same name in the
PHPMailer-FE script.
3. While you can put form field calculations in this external configuration file, we
do not recommend it. This will be used by all your forms.
4. You are probably scratching your head trying to figure out why we are using the
$_POST as variable names. Setting $_POST can be done outside of the form context,
here we are setting these "form" variables in a settings file. That means that a
virtually endless set of possibilities exists between the form and a PHP script.
For example, you can also use this External Configuration capability to perform
math on your form. Here's an example. Let's say that you have an form that generates
pricing based on quantity. Your two form fields then would be "frmQty_1" and
"frmUnitPrice_1" and "frmQty_2" and "frmUnitPrice_2". To derive the extended price,
you could use this code:
$_POST['extPrice_1'] = $_POST['frmQty_1'] * $_POST['frmUnitPrice_1'];
$_POST['extPrice_2'] = $_POST['frmQty_2'] * $_POST['frmUnitPrice_2'];
... and then PHPMailer-FE will process those new "extPrice" form variables.
Another example is concatenating. Here's an example:
$_POST['subject'] = 'Share Your Story, by ' . $_POST['title'] . " " . $_POST['realname'];
5. The landing page locations are relative. In the example above, the landing pages
are located in the same directory as phpmailer-fe.php ... if you use a different
location, include the entire URi - and keep in mind that any images have to be
properly referenced.
6. The reply email locations are relative. In the example above, the reply emails
are located in the same directory as phpmailer-fe.php ... if you use a different
location, include the entire URi - and keep in mind that any images have to be
properly referenced.
7. $useAsAutoResponder is another new feature of PHPMailer-FE (default value is false)
PHPMailer-FE is also a robust Auto-Responder that supports sending an attachment
to your users. If you want to use it purely as an auto-responder and and not send
the form results to $recipient, use the setting:
$useAsAutoResponder = true;
You can still use PHPMailer-FE as an Auto-Responder with the setting set to false,
the only difference is that with a value of false, the $recipient will get the form
contents. Also note that you can add any attachment in the form you display on your
site to receive attachments from your users ... this AUTO-RESPONDER capability lets
you store files on your server to send to your users. The way to use that is to put
two fields in your "form".config.php file:<br />
$_POST['attach_local_name'] = "/path/to/document.pdf";<br />
$_POST['attach_local_type'] = "application/pdf";<br />
(you can get a listing of mime types at http://www.webmaster-toolkit.com/mime-types.shtml).
8. Please note that the order of processing settings, variables and form field values
is:
* form
- you can have PHPMailer-FE settings passed as fields - usually hidden - in the form
* default external configuration file
- can override anything in the form - form field values and can set PHPMailer-FE
settings and variables
* form-specific external configuration file
- can override anything in the form - form field values and can set PHPMailer-FE
settings and variables
- can override anything passed by the external configuration file
When PHPMailer-FE subsequently processes, it will accept the last passed form field
values, settings (from the external configuration files) and ignore any of its
identical settings inside the PHPMailer-FE script.
With PHPMailer-FE, your possibilities are endless.
?>
Line 125 of the last file you posted is missing:
*/
But that is not the file. That file is basically just instructions/documentation .
*/
But that is not the file. That file is basically just instructions/documentation
ASKER
Oh ok. So then i need to input "*/" in line 125?
Would you give me instructions on what code you need and how to get that code?
Thank you
Would you give me instructions on what code you need and how to get that code?
Thank you
You HAD (past tense) a form here:
http://familypetexpos.com/_lib/coupon_form.html
but I don't see it anymore. I don't know what you did, but that form was submitting the data to some file named phpmailer-fe.php. That is the code that you need to post.
IF the code you posted above (ID:22456173) is in fact, phpmailer-fe.php, then you must have mis-copied. What you posted is just "notes/reference", not actual program logic.
http://familypetexpos.com/_lib/coupon_form.html
but I don't see it anymore. I don't know what you did, but that form was submitting the data to some file named phpmailer-fe.php. That is the code that you need to post.
IF the code you posted above (ID:22456173) is in fact, phpmailer-fe.php, then you must have mis-copied. What you posted is just "notes/reference", not actual program logic.
ASKER
ya.. funny enough.. the host that was hosting this site just went down so the whole site is down right now.. guess i'll get back to this a little later when it gets back up..
But just for the time being.. I find it strange because the phpmailer-fe.php, was the "Thank you for submitting your information" page - that the user gets redirected to after hitting "submit" Does this seem like the correct page? (below is the code for the phpmailer-fe.php file.)
Let me know if this is right or if you are looking for a different result.
Thanks
But just for the time being.. I find it strange because the phpmailer-fe.php, was the "Thank you for submitting your information" page - that the user gets redirected to after hitting "submit" Does this seem like the correct page? (below is the code for the phpmailer-fe.php file.)
Let me know if this is right or if you are looking for a different result.
Thanks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.green { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color:#669900;
text-decoration: none;
}
.red { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color: #FF0000;
text-decoration: none;
}
body {
background-color: #0066CC;
}
.style1 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" >
<tr>
<td colspan="2" valign="top" ></td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
<tr>
<td colspan="2" valign="top" ><table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><img src="_src/ok.png" border="0" /> </td>
<td class="green">Thank you for your submission.</td>
</tr>
<tr>
<td> </td>
<td><span class="style1">Your printable cupon will be emailed to you shortly! </span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="50" valign="top" class="red" align="center"> </td>
<td valign="middle" class="red"> </td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
</table>
</body>
</html>
This is how it works:
1. web user (who is in Germany) gets blank form on his/her browser
2. user fills blank form and submits/sends to some server script (in Australia) like process.php
3. The data sent from Germany to Australia is processed in Australia
4. The script/program running in Australia sends the Email out and when done send back a thank you "page/response" to the person in Germany
5. The person in Germany sees the thank you "page/response" and knows the submission was submitted successfully and processed.
The last code you provided is Step 5 - the thank you page. That page is in Germany in the user's browser. That is NOT what I need.
What I need is step 4 - the page/code that does the processing. That code is in Australia.
PS: not trying to be condescending. Just trying to clear things.
1. web user (who is in Germany) gets blank form on his/her browser
2. user fills blank form and submits/sends to some server script (in Australia) like process.php
3. The data sent from Germany to Australia is processed in Australia
4. The script/program running in Australia sends the Email out and when done send back a thank you "page/response" to the person in Germany
5. The person in Germany sees the thank you "page/response" and knows the submission was submitted successfully and processed.
The last code you provided is Step 5 - the thank you page. That page is in Germany in the user's browser. That is NOT what I need.
What I need is step 4 - the page/code that does the processing. That code is in Australia.
PS: not trying to be condescending. Just trying to clear things.
ASKER
Oh ok i see. Thank you for that clarification.
However, im not sure how to attain Step 4's code
Any idea where i could find that?
However, im not sure how to attain Step 4's code
Any idea where i could find that?
I don't know where you got the code that you posted above (Post ID:22456173), but that is PHP code ("Step 4 code"). Most likely, wherever you took that code from, you will find the correct php file. That's why I wanted to take a look at your form.
>>ya.. funny enough.. the host that was hosting this site just went down so the whole site is down right now
Well, all the times I've gone to the url above, when I click on the yellow image/coutpon, it takes me to:
http://familypetexpos.com/_lib/coupon_form.html
which DOES show me a page with the picture of some pets and an email address, but NO form to fill, even though it instruct you to fill a form. I think someone accidentally deleted the form.
>>ya.. funny enough.. the host that was hosting this site just went down so the whole site is down right now
Well, all the times I've gone to the url above, when I click on the yellow image/coutpon, it takes me to:
http://familypetexpos.com/_lib/coupon_form.html
which DOES show me a page with the picture of some pets and an email address, but NO form to fill, even though it instruct you to fill a form. I think someone accidentally deleted the form.
ASKER
oh crap.. oops.. lol, ya i changed that page due to the form not working temporataly.. you can find the form here:
http://familypetexpos.com/_lib/coupon_form_archive.html
(archived the form for when its fixed)
http://familypetexpos.com/_lib/coupon_form_archive.html
(archived the form for when its fixed)
OK, well that form is submitting the data to:
http://familypetexpos.com/_lib/phpmailer-fe.php
so if you know where you saved:
coupon_form_archive.html
on that same folder you should see:
phpmailer-fe.php
That's what you need to provide here.
http://familypetexpos.com/_lib/phpmailer-fe.php
so if you know where you saved:
coupon_form_archive.html
on that same folder you should see:
phpmailer-fe.php
That's what you need to provide here.
ASKER
Ok. Here is the code from the file:
http://familypetexpos.com/_lib/phpmailer-fe.php
http://familypetexpos.com/_lib/phpmailer-fe.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.green { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color:#669900;
text-decoration: none;
}
.red { font-family: Arial,Helvetica,sans-serif;
font-size: 20px;
color: #FF0000;
text-decoration: none;
}
body {
background-color: #0066CC;
}
.style1 {font-family: Geneva, Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" >
<tr>
<td colspan="2" valign="top" ></td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
<tr>
<td colspan="2" valign="top" ><table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><img src="_src/ok.png" border="0" /> </td>
<td class="green">Thank you for your submission.</td>
</tr>
<tr>
<td> </td>
<td><span class="style1">Your printable cupon will be emailed to you shortly! </span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="50" valign="top" class="red" align="center"> </td>
<td valign="middle" class="red"> </td>
</tr>
<tr>
<td colspan="2" valign="top" > </td>
</tr>
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
echo"<pre>";print_r(get_de