well I'm not going to read through all that. But I will tell you a couple of things that might help. Make sure that you don't use any special characters in your field names when creating the form. The field names should only consist of letters, numeric digits, whitespaces, and underscores. NOTHING ELSE. Also, the fieldname should not start with a numeric digit.
If you follow these rules, you will not get a parse error.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-02-27
Musawir,
Although I canappreciate that you cannot support the project for free, is there any way to fix this problem without re-creating the entire form?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is, but ofcourse you will need to know PHP in order to fix it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-02-28
I have tried a simple form with only 10 feilds and I'm still getting a parse error no matter what. No dropdown options, no numbers, no extenuating characters, only spaces, and it still doesn't work. Has ANYONE been able to use this program successfully?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, I don't think anyone has been able to use this program successfully. The 3 thousand users a day and hundreds of subscribers are all morons who like things that don't work ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i get an parse error:
Parse error: parse error in /var/www/html/phpform/forms/process.php on line 110
but my process.php has only 4 lines?
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','Achternaam');
pt_register('POST','Roepnaam');
pt_register('POST','Geboortedatum');
pt_register('POST','BegunstigerNFN');
pt_register('POST','Voorletters');
pt_register('POST','Geslacht');
pt_register('POST','NFNnummer');
pt_register('POST','achternaam');
pt_register('POST','roepnaam');
pt_register('POST','geboortedatum');
pt_register('POST','begunstigerNFN');
pt_register('POST','voorletters');
pt_register('POST','geslacht');
pt_register('POST','NFNnummer');
pt_register('POST','achternaam2');
pt_register('POST','voorletters2');
pt_register('POST','roepnaam2');
pt_register('POST','geboortedatum2');
pt_register('POST','geslacht2');
pt_register('POST','achternaam3');
pt_register('POST','voorletters3');
pt_register('POST','roepnaam3');
pt_register('POST','geboortedatum3');
pt_register('POST','geslacht3');
pt_register('POST','achternaam4');
pt_register('POST','voorletters4');
pt_register('POST','roepnaam4');
pt_register('POST','geboortedatum4');
pt_register('POST','geslacht4');
pt_register('POST','achternaam5');
pt_register('POST','voorletters5');
pt_register('POST','roepnaam5');
pt_register('POST','geboortedatum5');
pt_register('POST','geslacht5');
pt_register('POST','Straat');
pt_register('POST','postcode');
pt_register('POST','Woonplaats');
pt_register('POST','telefoon');
pt_register('POST','huisnummer');
pt_register('POST','telefax');
pt_register('POST','GSM');
pt_register('POST','emailadres');
pt_register('POST','lidgeweest');
pt_register('POST','welke');
pt_register('POST','geroyeerd');
pt_register('POST','veroordeeld');
pt_register('POST','zwemmen');
if($Achternaam=="" || $Roepnaam=="" || $Geboortedatum=="" || $Voorletters=="" || $Geslacht=="" || $Straat=="" || $postcode=="" || $Woonplaats=="" || $huisnummer=="" || $lidgeweest=="" || $geroyeerd=="" || $veroordeeld=="" || $zwemmen=="" ){
$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["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="Achternaam: ".$Achternaam."
Roepnaam: ".$Roepnaam."
Geboortedatum: ".$Geboortedatum."
Begunstiger NFN: ".$BegunstigerNFN."
Voorletters: ".$Voorletters."
Geslacht: ".$Geslacht."
NFN nummer: ".$NFNnummer."
achternaam: ".$achternaam."
roepnaam: ".$roepnaam."
geboortedatum: ".$geboortedatum."
begunstiger NFN: ".$begunstigerNFN."
voorletters: ".$voorletters."
geslacht: ".$geslacht."
NFN nummer: ".$NFNnummer."
achternaam 2: ".$achternaam2."
voorletters 2: ".$voorletters2."
roepnaam 2: ".$roepnaam2."
geboortedatum 2: ".$geboortedatum2."
geslacht 2: ".$geslacht2."
achternaam 3: ".$achternaam3."
voorletters 3: ".$voorletters3."
roepnaam 3: ".$roepnaam3."
geboortedatum 3: ".$geboortedatum3."
geslacht 3: ".$geslacht3."
achternaam 4: ".$achternaam4."
voorletters 4: ".$voorletters4."
roepnaam 4: ".$roepnaam4."
geboortedatum 4: ".$geboortedatum4."
geslacht 4: ".$geslacht4."
achternaam 5: ".$achternaam5."
voorletters 5: ".$voorletters5."
roepnaam 5: ".$roepnaam5."
geboortedatum 5: ".$geboortedatum5."
geslacht 5: ".$geslacht5."
Straat: ".$Straat."
postcode: ".$postcode."
Woonplaats: ".$Woonplaats."
telefoon: ".$telefoon."
huisnummer: ".$huisnummer."
telefax: ".$telefax."
GSM: ".$GSM."
email adres: ".$emailadres."
lid geweest: ".$lidgeweest."
welke: ".$welke."
geroyeerd: ".$geroyeerd."
veroordeeld: ".$veroordeeld."
zwemmen: ".$zwemmen."
";
$message = stripslashes($message);
mail("kraneveld@kraneveld.nl","Form Submitted at your website",$message,"From: phpFormGenerator");
header("Refresh: 0;url=http://www.kraneveld/phpform/forms/thanks.htm");
<?php
}
?>
Here i see more lines ,but can somebody help me with this problem, and is it also posible to print the page?
well I'm not going to read through all that. But I will tell you a couple of things that might help. Make sure that you don't use any special characters in your field names when creating the form. The field names should only consist of letters, numeric digits, whitespaces, and underscores. NOTHING ELSE. Also, the fieldname should not start with a numeric digit.
If you follow these rules, you will not get a parse error.
Musawir,
Although I canappreciate that you cannot support the project for free, is there any way to fix this problem without re-creating the entire form?
There is, but ofcourse you will need to know PHP in order to fix it.
I have tried a simple form with only 10 feilds and I'm still getting a parse error no matter what. No dropdown options, no numbers, no extenuating characters, only spaces, and it still doesn't work. Has ANYONE been able to use this program successfully?
No, I don't think anyone has been able to use this program successfully. The 3 thousand users a day and hundreds of subscribers are all morons who like things that don't work ;)
In case you werte wondering, here's the simple form with no options, and the fields are named just 2 letters: http://www.ezrefinow.com/phpform/forms/form1.html
I'm trying to do a form for the site with 47 fields and several dropdowns and radio buttons. It's quite frustrating to rebuild it each time.