close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

users_Profile showing wrong data

Thread began 5/10/2011 2:52 pm by info425534 | Last modified 5/11/2011 7:01 am by info425534 | 1356 views | 2 replies

info425534

users_Profile showing wrong data

Hello once again!

having a bit of an issue with the users_Profile page.

When I log into my site as a different user, and go to the user_Profile page where users can update their registration details, I am given my administration details in the password, first and last name feilds (because that's all I added to the sql). This is wrong and should be showing the details for the user that i'm logged in as.

I've tried clearing my browser history, and that didn't help. I'm not versed enough in PHP to look through the code and find the issue.

Here is the code from the users_Profile.php page:

---

<!-- InstanceBeginEditable name="Title" -->
<h3>Please update your registration and contact information below</h3>
<!-- InstanceEndEditable -->

<!-- InstanceBeginEditable name="EditRegion1" -->
<div id="UpdateContainer" class="WAATK">
<?php if ($totalRows_WAATKusers > 0) { // Show if recordset not empty ?>
<form action="<?php echo $editFormAction; ?>" method="post" name="WAATKUpdateForm" id="WAATKUpdateForm">
<h1>Profile</h1>
<table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Password:</th>
<td><input type="text" class="WAATKTextField" name="UserPassword" id="UserPassword" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserPassword'])); ?>" size="32" /></td>
</tr>
<tr>
<th>First Name:</th>
<td><input type="text" class="WAATKTextField" name="UserFirstName" id="UserFirstName" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserFirstName'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Last Name:</th>
<td><input type="text" class="WAATKTextField" name="UserLastName" id="UserLastName" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserLastName'])); ?>" size="32" /></td>
</tr>
<tr>
<th>City::</th>
<td><input type="text" class="WAATKTextField" name="UserCity" id="UserCity" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserCity'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Province:</th>
<td><input type="text" class="WAATKTextField" name="UserState" id="UserState" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserState'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Postal Code:</th>
<td><input type="text" class="WAATKTextField" name="UserZip" id="UserZip" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserZip'])); ?>" size="32" /></td>
</tr>
<tr>
<th>UserRegistrationDate:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="UserRegistrationDate" id="UserRegistrationDate" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserRegistrationDate'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
<tr>
<th>UserVerificationCode:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="UserVerificationCode" id="UserVerificationCode" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserVerificationCode'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
<tr>
<th>UserIP:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="UserIP" id="UserIP" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserIP'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
<tr>
<th>Contact Phone:</th>
<td><input type="text" class="WAATKTextField" name="UserPhone" id="UserPhone" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserPhone'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Fax:</th>
<td><input type="text" class="WAATKTextField" name="UserFax" id="UserFax" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserFax'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Country::</th>
<td><input type="text" class="WAATKTextField" name="UserCountry" id="UserCountry" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserCountry'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Mailing Address:</th>
<td><input type:="text" class="WAATKTextField" name="UserAddress" id="UserAddress" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserAddress'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Address Line 2:</th>
<td><input type="text" class="WAATKTextField" name="UserAddress2" id="UserAddress2" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['UserAddress2'])); ?>" size="32" /></td>
</tr>
<tr>
<th>Access Level:</th>
<td><?php if(WA_Auth_RulePasses("Administrator")){ // Begin Show Region ?>
<input type="text" class="WAATKTextField" name="userLevel" id="userLevel" value="<?php echo(str_replace('"', '&quot;', $row_WAATKusers['userLevel'])); ?>" size="32" />
<?php } // End Show Region ?></td>
</tr>
</table>
<div class="WAATKButtonRow">
<input type="Submit" name="Update" id="Update" value="Update">
<input name="UserEmail" type="hidden" id="WAATKUpdateRecordID" value="<?php echo(rawurlencode($row_WAATKusers['UserEmail'])); ?>">
<input type="hidden" name="MM_update" value="WAATKUpdateForm">
</div>
</form>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_WAATKusers == 0) { // Show if recordset empty ?>
<div>No record found.</div>
<?php } // Show if recordset empty ?>
</div>
<!-- InstanceEndEditable --></div>


---

Any help would be greatly appreciated.

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