Ok attatching this with the one above, I found this:
RE: phpFormGenerator v3.0 demo site
By: TNTEverett (tnteveret1Accepting Donations) - 2007-07-31 05:53
From what I can see the new Version 3.0 creates the mail() function inline instead of with variables as it did before. This is OK but it makes it more difficult to modify the mail() function fields.
This site will show you alot about the mail function: http://us3.php.net/function.mail
In summary
mail ($to,$subject,$message,$header)
where $header can take the form of
$header = 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$header .= 'Cc: birthdayarchive@example.com' . "\r\n";
$header .= 'Bcc: birthdaycheck@example.com' . "\r\n";
You can set these values to anything you want.
-------------------------------------
Now that's what want, BUT. I want instead the FROM: to correspond with my Field_3
Aso the Mail Function is different from mine.
$mysubject=$_POST['field_1'];
mail("obscurity666@gmail.com",$mysubject,"phpFormGenerator - Form submission","Form data:
That's what I have so far, with the Subject I would also like to do it with the header.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
============================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>for rcr - created by phpFormGenerator</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><link href="style.css" rel="stylesheet" type="text/css">
<!-- calendar stuff -->
</head>
<body>
<div style="width:600px">
<p class="headText">
We Would like to take this opportunity to thank you for considering <strong>
Rapid Credit Reports Inc.</strong> One of our team members will be
contacting you shortly.
<br />
In the meantime, please fax the <strong>"Required documents"</strong> listed below to
(818) 241-1916</p>
<li>Copy of Dealer's License.</li>
<li>Copy of Principal's government issued photo ID.</li>
<li>Copy of void business check.</li>
<li>Copy of business phone bill.</li>
<?php
if($field_4==Rent)
{
print '<li>Copy of 1<sup>st</sup> and last pages of your Lease Agreement</li>';}
else
{
echo'<li>Copy of Property Tax Bill</li>';}
if($field_5==Sole_Owner){
print'<li>Copy of Fictitious Business Name with proof of publication</li>';}
elseif($field_5==LLC){
print'<li>Copy of Articles of Organization</li>';}
elseif($field_5==Partnership){
print '<li>Copy of Fictitious Business Name with proof of publication</li>';}
else{
print '<li>Copy of Articles of Incorporation</li>';}
?>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2009-06-17
I couldn't open a new thread so I'm asking a question about my problem over here.
I've got a problem with my form (#111114). When I press the submit button I get the following error:
==========================
Error 405 Method Not Allowed
The requested method POST is not allowed for URL /processor.php
Powered by Zeus Technology
Is this the problem of the host, because on a other server it worked properly. I checked the internet for people with the same problem and found that the problem could be that not everyone could write/read the files, but I checked this and everybody can write/read the files on the server.
Anybody know what to do?
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But to me it either sounds like a Chmod Permission Problem (try Changing it to 755 I think) OR, That you're hosting service isn't allowing you to run a certain PHP, or something is wrong with there setup, Try the CHmod, OR, Email your hosting company for more Information.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We'll, I don't know what to tell you, I know it's worked perfectly for me and I've created over 5 forms all functioning on my website. So, I would either wait or try and email the owner of this program.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The form I created with the generator works fine. But there is a problem when writing german "Umlauts" like ?, Ä, Ö or Ü. They are not displayed correctly in the form received. Could you please tell me what to modify in the script in order to get them dosplayed correctly?
THanks,
nicomw
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to manage the character set used for both the form and any email or files sent. You can manage this better with HTML email.
Follow one of the examples here to get the email character set in line with your language preference. http://us2.php.net/manual/en/function.mail.php
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I,m a new user of PHP and MySQL , I generated a test page and got the following error.
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='.:/php/includes:/usr/local/lib/php:/usr/share/pear:./includes') in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: mysql_connect(): Access denied for user: 'ukal@localhost' (Using password: NO) in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 6 Could not connect to database: Access denied for user: 'ukal@localhost' (Using password: NO)
Can anyone point me in the right direction on what I need todo to fix this error
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I,m a new user of PHP and MySQL , I generated a test page and got the following error.
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='.:/php/includes:/usr/local/lib/php:/usr/share/pear:./includes') in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: mysql_connect(): Access denied for user: 'ukal@localhost' (Using password: NO) in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 6 Could not connect to database: Access denied for user: 'ukal@localhost' (Using password: NO)
Can anyone point me in the right direction on what I need todo to fix this error
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your finished form should not be in the folder
/home/ukal/public_html/form/tmp/persistent/form126208
it should be in
/home/ukal/public_html/form/use/form126208
Solve this problem first.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Once you upload all the files to your server, you need to run the install.php file in the location you uploaded to. It will create the config.inc.php file as well as the mysql table/fields.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I created a form at phpformgenerator on line and downloaded it
I put the folder on my website, with the following reference to it:
<a href="mailform/form.html">CONTACT FORM </a>
This brings up the form, but on filling it in and hitting "SUBMIT" it puts the file "processor.php" on the screen. Is there something I need to change here?
I am missing something, but don't know what.
Can anyone help please.
Thanks Adrian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
//we get the extension from the file name !
$ext = substr($HTTP_POST_FILES['file']['name'], 0, -4);
//now start a loop to look at extension and compare it
//to the allowed ones !
for ($i=0; $i<count($allowed); $i++) {
if ($ext !== $allowed[$i]) {
die('This file type is not allowed! Go back and try again with allowed file types jpg jpeg gif png pdf doc rtf! If you want to use other file type email Webmaster directly!');
Works great for me!
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
//we get the extension from the file name !
$ext = substr($HTTP_POST_FILES['file']['name'], 0, -4);
//now start a loop to look at extension and compare it
//to the allowed ones !
for ($i=0; $i<count($allowed); $i++) {
if ($ext !== $allowed[$i]) {
die('This file type is not allowed! Go back and try again with allowed file types jpg jpeg gif png pdf doc rtf! If you want to use other file type email Webmaster directly!');
Works great for me!
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Questions. 1. Does PHP Form Builder Have to be installed on my domain for the forms to work? 2. If I have several domains, do I have to install it on each domain? 3. How do I install the form builder without affecting the content of my existing domain? I am new to this; can someone please help? The program is one of the best that I have seen so far; I would like to use it but I have theses concerns. Any help would be greatly appreciated. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a newbie… i don't know php etc. I created a form and am not receiving the emails…. what have i done wrong. Help please…. I'm getting a headache. I like this better than version 2.09 but this isn't working. UGH. please, please help me…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok attatching this with the one above, I found this:
RE: phpFormGenerator v3.0 demo site
By: TNTEverett (tnteveret1Accepting Donations) - 2007-07-31 05:53
From what I can see the new Version 3.0 creates the mail() function inline instead of with variables as it did before. This is OK but it makes it more difficult to modify the mail() function fields.
This site will show you alot about the mail function:
http://us3.php.net/function.mail
In summary
mail ($to,$subject,$message,$header)
where $header can take the form of
$header = 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$header .= 'Cc: birthdayarchive@example.com' . "\r\n";
$header .= 'Bcc: birthdaycheck@example.com' . "\r\n";
You can set these values to anything you want.
-------------------------------------
Now that's what want, BUT. I want instead the FROM: to correspond with my Field_3
Aso the Mail Function is different from mine.
$mysubject=$_POST['field_1'];
mail("obscurity666@gmail.com",$mysubject,"phpFormGenerator - Form submission","Form data:
That's what I have so far, with the Subject I would also like to do it with the header.
Need help!!!!
I have created a "form" using phpFormGenrator
it's processor has an include file "confirm.php", on submit some of the fields in this file is being pre-populated based on user's inputs on form.
My problem:
this form is used on two different web sites
first site is hosted by YAHOO WEB HOSTING
second site is hosted by GO DADDY on a LINUX server
the package on YAHOO works perfectly with no problem. email is sent and the include file is being populated with correct info
the one on GO DADDY only sends the email, opens the include file, but fields are not getting populated or changed per user's input .
any idea how to solve the problem on GO DDADY?
This on GO DADDY:
http://www.rapidcreditreports.com/formrcr/tmp/persistent/form110159/form.html
http://www.rapidcreditreports.com/formrcr/tmp/persistent/form110159/processor.php
============================
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
mail("razmik.a1@sbcglobal.net","phpFormGenerator - Form submission","Form data:
Company Name: " . $_POST['field_1'] . "
Phone: " . $_POST['field_2'] . "
Contact Name: " . $_POST['field_3'] . "
Office Space: " . $_POST['field_4'] . "
Owner ship: " . $_POST['field_5'] . "
powered by phpFormGenerator.
");
include("confirm.php");
?>
http://www.rapidcreditreports.com/formrcr/tmp/persistent/form110159/confirm.php
============================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>for rcr - created by phpFormGenerator</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><link href="style.css" rel="stylesheet" type="text/css">
<!-- calendar stuff -->
</head>
<body>
<div style="width:600px">
<p class="headText">
We Would like to take this opportunity to thank you for considering <strong>
Rapid Credit Reports Inc.</strong> One of our team members will be
contacting you shortly.
<br />
In the meantime, please fax the <strong>"Required documents"</strong> listed below to
(818) 241-1916</p>
<h1 style="width:600px;text-align:center">Fax Cover Sheet</h1>
<table style="border: 1px solid #000000; width:600px">
<tr>
<td id="col_1" class="text_Bold">From:</td>
<td id="Col_2" class="text"><?php print $field_1; ?> </td>
<td id="Col_3" class="text_Bold">To:</td>
<td class="text" id="Col_4">Rapid Credit Reports Inc.</td>
</tr>
<tr>
<td class="text_Bold">Phone:</td>
<td><?php print $field_2; ?> </td>
<td id="col_1" class="text_Bold" style="width:15%">Phone</td>
<td id="Col_2" class="text" style="width:35%">(800) 727-4322</td>
</tr>
<tr>
<td class="text_Bold">Contact Name:</td>
<td><?php print $field_3; ?> </td>
<td class="text_Bold">Fax No.:</td>
<td class="text">818-241-1916</td>
</tr>
<tr>
<td class="Bor_col"> </td>
<td class="Bor_col"> </td>
<td class="text_Bold">Subject: </td>
<td class="text">Auto Dealership's Application</td>
</tr>
<tr>
<td colspan="2" class="Bor_col"> </td>
<td class="text_Bold">Attention: </td>
<td class="text">New Accounts</td>
</tr>
<tr>
<td class="text_Bold">
No. of Pages:</td>
<td> </td>
</tr>
<tr >
<td colspan="4" class="Bor_col"> </td>
</tr>
<tr>
<td colspan="4" class="text_Bold">Required documents:<br />
<ul class="text">
<li>Copy of Dealer's License.</li>
<li>Copy of Principal's government issued photo ID.</li>
<li>Copy of void business check.</li>
<li>Copy of business phone bill.</li>
<?php
if($field_4==Rent)
{
print '<li>Copy of 1<sup>st</sup> and last pages of your Lease Agreement</li>';}
else
{
echo'<li>Copy of Property Tax Bill</li>';}
if($field_5==Sole_Owner){
print'<li>Copy of Fictitious Business Name with proof of publication</li>';}
elseif($field_5==LLC){
print'<li>Copy of Articles of Organization</li>';}
elseif($field_5==Partnership){
print '<li>Copy of Fictitious Business Name with proof of publication</li>';}
else{
print '<li>Copy of Articles of Incorporation</li>';}
?>
</ul>
</td>
</tr>
<tr>
<td colspan="4" class="text_Bold" style="border: 1px solid #000000; height:400px; vertical-align:top">Comments:</td>
</tr>
</table>
</div>
===========================================================
and this is on YAHOO:
http://artainsuranceagency.com/formrcr/tmp/persistent/form110159/form.html
http://artainsuranceagency.com/formrcr/tmp/persistent/form110159/processor.php
http://artainsuranceagency.com/formrcr/tmp/persistent/form110159/confirm.php
(source codes are identical)
thanks razmik
Never mind I figured it out
Thanks anyway
I couldn't open a new thread so I'm asking a question about my problem over here.
I've got a problem with my form (#111114). When I press the submit button I get the following error:
==========================
Error 405 Method Not Allowed
The requested method POST is not allowed for URL /processor.php
Powered by Zeus Technology
Is this the problem of the host, because on a other server it worked properly. I checked the internet for people with the same problem and found that the problem could be that not everyone could write/read the files, but I checked this and everybody can write/read the files on the server.
Anybody know what to do?
Thanks in advance.
I'm Not an Expert by all means.
But to me it either sounds like a Chmod Permission Problem (try Changing it to 755 I think) OR, That you're hosting service isn't allowing you to run a certain PHP, or something is wrong with there setup, Try the CHmod, OR, Email your hosting company for more Information.
well ive spend 35 minutes creating a form and ended up reading:
Program malfunction, please start over.
So its crap...like in junk...
We'll, I don't know what to tell you, I know it's worked perfectly for me and I've created over 5 forms all functioning on my website. So, I would either wait or try and email the owner of this program.
The form I created with the generator works fine. But there is a problem when writing german "Umlauts" like ?, Ä, Ö or Ü. They are not displayed correctly in the form received. Could you please tell me what to modify in the script in order to get them dosplayed correctly?
THanks,
nicomw
You need to manage the character set used for both the form and any email or files sent. You can manage this better with HTML email.
Follow one of the examples here to get the email character set in line with your language preference.
http://us2.php.net/manual/en/function.mail.php
You are right! Thank you! :-)
Setting the charset to iso-8859-1solved the problem.
Regards,
nicomw
Hi, I,m a new user of PHP and MySQL , I generated a test page and got the following error.
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='.:/php/includes:/usr/local/lib/php:/usr/share/pear:./includes') in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: mysql_connect(): Access denied for user: 'ukal@localhost' (Using password: NO) in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 6 Could not connect to database: Access denied for user: 'ukal@localhost' (Using password: NO)
Can anyone point me in the right direction on what I need todo to fix this error
Cheers
Hi, I,m a new user of PHP and MySQL , I generated a test page and got the following error.
Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(config.inc.php): failed to open stream: No such file or directory in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: main(): Failed opening 'config.inc.php' for inclusion (include_path='.:/php/includes:/usr/local/lib/php:/usr/share/pear:./includes') in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 5 Warning: mysql_connect(): Access denied for user: 'ukal@localhost' (Using password: NO) in /home/ukal/public_html/form/tmp/persistent/form126208/processor.php on line 6 Could not connect to database: Access denied for user: 'ukal@localhost' (Using password: NO)
Can anyone point me in the right direction on what I need todo to fix this error
Cheers
Your finished form should not be in the folder
/home/ukal/public_html/form/tmp/persistent/form126208
it should be in
/home/ukal/public_html/form/use/form126208
Solve this problem first.
Once you upload all the files to your server, you need to run the install.php file in the location you uploaded to. It will create the config.inc.php file as well as the mysql table/fields.
Hi, Hope some one can help here.
I created a form at phpformgenerator on line and downloaded it
I put the folder on my website, with the following reference to it:
<a href="mailform/form.html">CONTACT FORM </a>
This brings up the form, but on filling it in and hitting "SUBMIT" it puts the file "processor.php" on the screen. Is there something I need to change here?
I am missing something, but don't know what.
Can anyone help please.
Thanks Adrian
Restricting file type uploads. How do I do it?
Thanks
Dan
Hello Admin,
Trying to limit uploads to type jpg jpeg gif png pdf doc rtf
Here is my processor.php
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
session_start();
if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
// File upload handling
if($_FILES['field_3']['name']!=''){
$field_3_filename = "file_3_".date("sihdmY").substr($_FILES['field_3']['name'],strlen($_FILES['field_3']['name'])-4);
if(!move_uploaded_file($_FILES['field_3']['tmp_name'], "./files/".$field_3_filename)){
die("File " . $_FILES['field_3']['name'] . " was not uploaded.");
$ip = $_POST['ip'];
}
}
mail("webmaster@area35.org","phpFormGenerator - Form submission","Form data:
Your Email Address: " . $_POST['field_1'] . "
Comment: " . $_POST['field_2'] . "
File Upload: ".$where_form_is."files/".$field_3_filename." (original file name: " . $_FILES['field_3']['name'] . ")
Additional Info : " . $_POST['ip'] . "
powered by phpFormGenerator.
");
include("confirm.html");
}
else {
echo "Invalid Captcha String.";
}
?>
Here is my form page address http://www.area35.org/Upload%20Form/persistent/form/form.html
Thanks in advance!
Dan
Figured it out myself below:
I wanted to limit file types for upload.
I came up with this after a lot of looking and not finding anything on the forums.
In Processor.php I added this"
session_start();
if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
// File upload handling
if($_FILES['field_3']['name']!=''){
$field_3_filename = "file_3_".date("sihdmY").substr($_FILES['field_3']['name'],strlen($_FILES['field_3']['name'])-4);
if(!move_uploaded_file($_FILES['field_3']['tmp_name'], "./files/".$field_3_filename)){
die("File " . $_FILES['field_3']['name'] . " was not uploaded.");
}
}
//an array that contains allowed extensions only.
$allowed[] = 'jpg';
$allowed[] = 'gif';
$allowed[] = 'doc';
$allowed[] = 'rtf';
$allowed[] = 'pdf';
$allowed[] = 'jpeg';
//we get the extension from the file name !
$ext = substr($HTTP_POST_FILES['file']['name'], 0, -4);
//now start a loop to look at extension and compare it
//to the allowed ones !
for ($i=0; $i<count($allowed); $i++) {
if ($ext !== $allowed[$i]) {
die('This file type is not allowed! Go back and try again with allowed file types jpg jpeg gif png pdf doc rtf! If you want to use other file type email Webmaster directly!');
Works great for me!
Dan
Figured it out myself below:
I wanted to limit file types for upload.
I came up with this after a lot of looking and not finding anything on the forums.
In Processor.php I added this"
session_start();
if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
// File upload handling
if($_FILES['field_3']['name']!=''){
$field_3_filename = "file_3_".date("sihdmY").substr($_FILES['field_3']['name'],strlen($_FILES['field_3']['name'])-4);
if(!move_uploaded_file($_FILES['field_3']['tmp_name'], "./files/".$field_3_filename)){
die("File " . $_FILES['field_3']['name'] . " was not uploaded.");
}
}
//an array that contains allowed extensions only.
$allowed[] = 'jpg';
$allowed[] = 'gif';
$allowed[] = 'doc';
$allowed[] = 'rtf';
$allowed[] = 'pdf';
$allowed[] = 'jpeg';
//we get the extension from the file name !
$ext = substr($HTTP_POST_FILES['file']['name'], 0, -4);
//now start a loop to look at extension and compare it
//to the allowed ones !
for ($i=0; $i<count($allowed); $i++) {
if ($ext !== $allowed[$i]) {
die('This file type is not allowed! Go back and try again with allowed file types jpg jpeg gif png pdf doc rtf! If you want to use other file type email Webmaster directly!');
Works great for me!
Dan
Hi’ I just uploaded my first phpform and it works fine in English, but I need to get email in Greek language can somebody tell me how?
Questions. 1. Does PHP Form Builder Have to be installed on my domain for the forms to work? 2. If I have several domains, do I have to install it on each domain? 3. How do I install the form builder without affecting the content of my existing domain? I am new to this; can someone please help? The program is one of the best that I have seen so far; I would like to use it but I have theses concerns. Any help would be greatly appreciated. Thanks.
I don't understand the default value, what is it for and hot to use it?, can somebody please define?
Hot to use it….lol, ment how to use.
So just how much longer are we going to have to wait to to be able to download this thing
I ve been waiting for 2 years!
I'm a newbie… i don't know php etc. I created a form and am not receiving the emails…. what have i done wrong. Help please…. I'm getting a headache. I like this better than version 2.09 but this isn't working. UGH. please, please help me…