02-14-2008, 04:02 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 28
Thanks: 9
|
ithought that was the case but im still having trouble, im getting this error now
Quote:
|
Parse error: syntax error, unexpected T_IS_EQUAL, expecting ')' in /home/sites/planetredevents.co.uk/public_html/demo/process.php on line 93
|
this is line 93 and its function;
php Code:
function isValidForm ($strTempName, $strTempTelephone, $strTempMobile, $strTempEmail, $strTempConfirmEmail, $strTempCity, $strTempEmail == $strTempConfirmEmail){ //Set strError Variable to global so we can use the Variable //outside of the function. global $strError ; //Initiate the variable by setting it eqaul to nothing. $strError = "" ; if($strTempName == "") { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Name field.<br>" ; } if($strTempTelephone == "") { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Telephone field.<br>" ; } if($strTempMobile == "") { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Mobile field.<br>" ; } if($strTempEmail == "") { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Email field.<br>" ; } if($strTempConfirmEmail == "") { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Confirm Email field.<br>" ; } if($strTempCity == "") { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Chosen City field.<br>" ; } if($strTempEmail != $strTempConfirmEmail) { //Build the string error message by Cocantenating the strError Variable //to itself. $strError .= "Email does not match.<br>" ; } //Test to see if the strError Variable contains a message //If it does then return false (not an valid form). //If strError Variable is empty or "" then return true (is a valid form). if($strError != "") { return false ; } else { return true ; }}
Last edited by Wildhoney : 02-14-2008 at 04:42 PM.
|
|
|
|