Hey all. I've installed the php FormGenerator and I've created a form. I copy and pasted the code onto my website. I tested it out and clicked submit but I get an error. Here's the link: http://invitationkingdom.com/nav/custom/invite.php
Feel free to take a look at my codes and stuff. I've literally been working on this for 7+ hours. HELP!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is not much that can be determined without looking at the process.php file. In any case the error message indicates that upon submission the process.php file can not be found and/or executed. Make sure the file exists and the permissions are 775 or 664.
you should get an error message from the file itself.
If you don't get something like "The following errors occured while processing your form input." then there is somthing wrong with the setup of your form and the associated process.php file.
You must solve this first.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi tnteveret1. I have tried directly pointing it, not directly pointing it, uninstalled the form generator, reinstalled it, re-doing forms, adding it to mysql, making tables, different thank you pages, staring at the process.php file, etc. Nothing seems to work! Please help!
The process.php file or folder has the wrong permissions. I can not do more without access to your site.
As a test, create a file named test.php with the following contents:
<?php
echo "Hello World!";
?>
Put this in the same folder as your process.php file and point your browser to this file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I nvitations,
I have ben reading almost this complete forum but never registered until now,
Your problem is the exact same as 90% of the total board.
Open your forms folder, or whatever folder you uploaded your phpformgen to.
EVERY folder you see should be set to 755 and everything else (html, php, etc should be 644.
Remove any 777 permissions as, especially Linux/Unix servers will allow NOBODY to open them for security purposes.
I have set my server to "LOCK" any folders with 777 set until they are changed!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey all. I've installed the php FormGenerator and I've created a form. I copy and pasted the code onto my website. I tested it out and clicked submit but I get an error. Here's the link: http://invitationkingdom.com/nav/custom/invite.php
Feel free to take a look at my codes and stuff. I've literally been working on this for 7+ hours. HELP!!
There is not much that can be determined without looking at the process.php file. In any case the error message indicates that upon submission the process.php file can not be found and/or executed. Make sure the file exists and the permissions are 775 or 664.
http://www.invitationkingdom.com/orders/use/event_invite/process.php
I did what you said tnteveret1 and still doesn't work. Here's my process.php file:
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','FirstName');
pt_register('POST','LastName');
pt_register('POST','EmailAddress');
pt_register('POST','PhoneNumber');
pt_register('POST','StreetAddress');
pt_register('POST','City');
pt_register('POST','State');
pt_register('POST','Zip');
pt_register('POST','EventDate');
pt_register('POST','EventTheme');
pt_register('POST','ColorScheme');
pt_register('POST','InvitationStyle');
pt_register('POST','FontStyle');
pt_register('POST','NumberofInserts');
pt_register('POST','InsertNames');
$InsertNames=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $InsertNames);pt_register('POST','PhotoSampleURL');
pt_register('POST','FullDescription');
$FullDescription=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $FullDescription);if($FirstName=="" || $LastName=="" || $EmailAddress=="" || $StreetAddress=="" || $City=="" || $State=="" || $Zip=="" || $EventDate=="" || $EventTheme=="" || $ColorScheme=="" || $InvitationStyle=="" || $FontStyle=="" || $NumberofInserts=="" || $InsertNames=="" || $FullDescription=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="First Name: ".$FirstName."
Last Name: ".$LastName."
Email Address: ".$EmailAddress."
Phone Number: ".$PhoneNumber."
Street Address: ".$StreetAddress."
City: ".$City."
State: ".$State."
Zip: ".$Zip."
Event Date: ".$EventDate."
Event Theme: ".$EventTheme."
Color Scheme: ".$ColorScheme."
Invitation Style: ".$InvitationStyle."
Font Style: ".$FontStyle."
Number of Inserts: ".$NumberofInserts."
Insert Names: ".$InsertNames."
Photo Sample URL: ".$PhotoSampleURL."
Full Description: ".$FullDescription."
";
$message = stripslashes($message);
mail("warmsummers@aol.com","Form Submitted at your website",$message,"From: phpFormGenerator");
header("Refresh: 0;url=http://www.invitationkingdom.com/nav/thankyou.php");
?><?php
}
?>
If you point your browser directly to the process.php file
http://invitationkingdom.com/nav/custom/process.php
you should get an error message from the file itself.
If you don't get something like "The following errors occured while processing your form input." then there is somthing wrong with the setup of your form and the associated process.php file.
You must solve this first.
Hi tnteveret1. I have tried directly pointing it, not directly pointing it, uninstalled the form generator, reinstalled it, re-doing forms, adding it to mysql, making tables, different thank you pages, staring at the process.php file, etc. Nothing seems to work! Please help!
Here's my new link:
http://invitationkingdom.com/nav/custom/invite2.php
Here's my processor file:
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','FirstName');
pt_register('POST','LastName');
pt_register('POST','EmailAddress');
pt_register('POST','PhoneNumber');
pt_register('POST','StreetAddress');
pt_register('POST','City');
pt_register('POST','State');
pt_register('POST','Zip');
pt_register('POST','EventDate');
pt_register('POST','EventTheme');
pt_register('POST','ColorScheme');
pt_register('POST','InvitationStyle');
pt_register('POST','Font');
pt_register('POST','NumberofInserts');
pt_register('POST','InsertNames');
$InsertNames=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $InsertNames);pt_register('POST','DetailExtras');
$DetailExtras=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $DetailExtras);pt_register('POST','PhotoSampleURL');
pt_register('POST','FullDescription');
$FullDescription=preg_replace("/(\015\012)|(\015)|(\012)/","&nbsp;<br />", $FullDescription);if($FirstName=="" || $LastName=="" || $EmailAddress=="" || $StreetAddress=="" || $City=="" || $State=="" || $Zip=="" || $EventDate=="" || $EventTheme=="" || $ColorScheme=="" || $InvitationStyle=="" || $Font=="" || $NumberofInserts=="" || $InsertNames=="" || $DetailExtras=="" || $FullDescription=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="First Name: ".$FirstName."
Last Name: ".$LastName."
Email Address: ".$EmailAddress."
Phone Number: ".$PhoneNumber."
Street Address: ".$StreetAddress."
City: ".$City."
State: ".$State."
Zip: ".$Zip."
Event Date: ".$EventDate."
Event Theme: ".$EventTheme."
Color Scheme: ".$ColorScheme."
Invitation Style: ".$InvitationStyle."
Font: ".$Font."
Number of Inserts: ".$NumberofInserts."
Insert Names: ".$InsertNames."
Detail Extras: ".$DetailExtras."
Photo Sample URL: ".$PhotoSampleURL."
Full Description: ".$FullDescription."
";
$message = stripslashes($message);
mail("warmsummers@aol.com","Form Submitted at your website",$message,"From: phpFormGenerator");
$make=fopen("admin/data.dat","a");
$to_put="";
$to_put .= $FirstName."|".$LastName."|".$EmailAddress."|".$PhoneNumber."|".$StreetAddress."|".$City."|".$State."|".$Zip."|".$EventDate."|".$EventTheme."|".$ColorScheme."|".$InvitationStyle."|".$Font."|".$NumberofInserts."|".$InsertNames."|".$DetailExtras."|".$PhotoSampleURL."|".$FullDescription."
";
fwrite($make,$to_put);
header("Refresh: 0;url=http://www.invitationkingdom.com/nav/thankyou.php");
?><?php
}
?>
If you can figure this out, I swear I'll donate some $$ to ya. I'm desperate! Haha!
The process.php file or folder has the wrong permissions. I can not do more without access to your site.
As a test, create a file named test.php with the following contents:
<?php
echo "Hello World!";
?>
Put this in the same folder as your process.php file and point your browser to this file.
Bingo! So this means it's obviously the process.php file. Now what? *shrugs*
I can give you my info if you're willing to help a girl out :o)
Pretty please with a cherry on top?
I nvitations,
I have ben reading almost this complete forum but never registered until now,
Your problem is the exact same as 90% of the total board.
Open your forms folder, or whatever folder you uploaded your phpformgen to.
EVERY folder you see should be set to 755 and everything else (html, php, etc should be 644.
Remove any 777 permissions as, especially Linux/Unix servers will allow NOBODY to open them for security purposes.
I have set my server to "LOCK" any folders with 777 set until they are changed!