close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

php syntax error help

Thread began 2/06/2013 4:10 pm by joblackmon445409 | Last modified 2/07/2013 6:23 am by Jason Byrnes | 859 views | 1 replies |

joblackmon445409

php syntax error help

I have tried to created user registration and log in along with verify. Everything works except my user update page which will not load due to a syntax error. There error is somewhere on this code.

$WA_fieldNamesStr ="UserEmail|UserPassword|UserFirstName|UserLastName|UserCity|UserState|UserZip|UserPhone|UserFax|UserCountry|UserAddress|UserAddress2|emailVerified"; $WA_fieldValuesStr = "".((isset($_POST["User_Update_group_Email"]))?$_POST["User_Update_group_Email"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_Password"]))?$_POST["User_Update_group_Password"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_First_Name"]))?$_POST["User_Update_group_First_Name"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_Last_Name"]))?$_POST["User_Update_group_Last_Name"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_City"]))?$_POST["User_Update_group_City"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_State"]))?$_POST["User_Update_group_State"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_10_Zip"]))?$_POST["User_Update_group_10_Zip"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_1_Phone"]))?$_POST["User_Update_group_1_Phone"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_1_Fax"]))?$_POST["User_Update_group_1_Fax"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_11_Country"]))?$_POST["User_Update_group_11_Country"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_Address"]))?$_POST["User_Update_group_Address"]:"") ."" . $WA_AB_Split . "".((isset($_POST["User_Update_group_Address_2"]))?$_POST["User_Update_group_Address_2"]:"") ."" . $WA_AB_Split . "?php echo(($row_SecurityAssistusers['UserEmail'] != $_POST[\"User_Update_group_Email\"])? '0': $row_SecurityAssistusers['emailVerified']); ?";

I would rather not have to reinvent the wheel and make all those forms and pages again. Any help is appreciated. I tried to upload my entire code in notepad but that didnt work.

Sign in to reply to this post

Jason ByrnesWebAssist

the syntax error is in this section of the code:


$WA_AB_Split . "?php echo(($row_SecurityAssistusers['UserEmail'] != $_POST[\"User_Update_group_Email\"])? '0': $row_SecurityAssistusers['emailVerified']); ?";

it should look more like this:
$WA_AB_Split . "".(($row_SecurityAssistusers['UserEmail'] != $_POST["User_Update_group_Email"])? "0": $row_SecurityAssistusers['emailVerified'])."";

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...