close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

State Update not updating

Thread began 11/14/2010 5:15 pm by msjj000 | Last modified 12/15/2010 12:12 pm by Jason Byrnes | 3237 views | 13 replies |

msjj000Beta Tester

State Update not updating

Hi WA,

I have localized the /users_profile page with my local states and removed the extras starting from line 343.

It lists properly when the user is login in however it doesn't record the change/update and lists "choose a state" once the user logs in again.

Same issue on admin/users_update

Any clues?

Thanks, Mark

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page and a screen shot demonstrating the issue.

Sign in to reply to this post

msjj000Beta Tester

Hi Jason,

Here's the screen shot when the user logs back in. It appears to be recorded in the database but does not display on the page. I've replaced the US states with the Australian states in the same format.

Thanks, Mark.

Sign in to reply to this post

Jason ByrnesWebAssist

I also need a copy of the page please.

Sign in to reply to this post

msjj000Beta Tester

Hi Jason,

Thanks. File attached. Just rename and remove the _AU

Regards, Mark.

Attached Files
users_profile_AU.zip
Sign in to reply to this post

Jason ByrnesWebAssist

you need to edit the values being used for the comparison in the code for each options.



for example, the option for Australian Capital Territory is:

php:
<option value="ACT" <?php if (!(strcmp("AL", (isset($_GET['valid'])?ValidatedField("usersUpdate","UserState"):$row_WADAusers['UserState'])))) {echo "selected=\"selected\"";} ?>>Australian Capital Territory</option>




notice the first part of this code:
<option value="ACT" <?php if (!(strcmp("AL",

this is setitng it to compare the value "AL" with what is stored in the database, but it needs to be changed to match the options value ATC:

or:
<option value="ACT" <?php if (!(strcmp("ATC",

Sign in to reply to this post

msjj000Beta Tester

Jason,

Thanks for the tip. I should have seen that one. I tried making the change however I get the same issue (Code below). The correct value appears to be stored as this can be seen in the admin user view details.

Mark.

<option value="ACT" <?php if (!(strcmp("ACT", (isset($_GET['valid'])?ValidatedField("usersUpdate","UserState"):$row_WADAusers['UserState'])))) {echo "selected=\"selected\"";} ?>>Australian Capital Territory</option>

Sign in to reply to this post

Jason ByrnesWebAssist

just to double check the value in the db, lets change:
<option value="ACT" <?php if (!(strcmp("ACT", (isset($_GET['valid'])?ValidatedField("usersUpdate","UserState"):$row_W ADAusers['UserState'])))) {echo "selected=\"selected\"";} ?>>Australian Capital Territory</option>

to:
<option value="ACT" <?php if (!(strcmp("ACT", (isset($_GET['valid'])?ValidatedField("usersUpdate","UserState"):$row_W ADAusers['UserState'])))) {echo "selected=\"selected\"";} ?>>Australian Capital Territory|<?php echo $row_WADAusers['UserState']; ?></option>


if you could provide a link where i could see the issue, that would help as well.

Sign in to reply to this post

msjj000Beta Tester

Hi Jason,

I get the following error when I make that change

Parse error: syntax error, unexpected T_STRING in C:\inetpub\vhosts\ridewerx.com\httpdocs\shop\users_profile.php on line 343

The PS4 test site is located at ridewerx.com/shop (dont confuse it with my current PS3 site at ridewerx.com/store)

btw the same "select a state" issues occurs in the admin section/pages

Thanks, Mark.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the users _profile.php page please.

Sign in to reply to this post
loading

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...