Shedevil
October 19th, 2006, 18:43
Okay I've been at this for well over a month and I'm ready to scream and say #*@$ it! (Yes I beeped out my language).
I can't get this stupid code to do what I want.
1. I need my user update.php to look like this: update info on the fly (http://www.moonation.org/love/update.php)
Except I don't want old email required or change email by typing it twice, or spam protected (as only admin sees it no one else), or country....or delete--deleting I have covered by admin use ONLY.
That's just an example about what I mean with updating on the fly without logging into an area to update info.
2. I need my update form to check my existing pw in the database WITH my username (can't update username because I've uniqued it and it checks against the current pw) to allow updates...if the pw is wrong, update won't happen...my code currently doesn't check the pw and just updates anyway.
3. change pw by typing in username and current pw with new pw and confirm new pw...currently it's not working >_<
4. update SELECTED fields or ALL of the form WITHOUT emptying fields already filled in within my database...my code keeps emptying them >_<
At this point, I'm ready to give up playing with php all together because no matter how many tutorials and forums I read, php HATES me!
If you need to see my code, please let me know...
Basically I only have these fields
username (db row: username)
new password (must be able to empty current pw and replace it in db row: pw)
new password again (must equal new pw for db row: pw)
email (db row: email)
site name (db row: sitename)
site url (db row: siteurl)
current password (db row: pw)
I'm about to have an anurism!!!!!!!!!!!!!!
I can't get this stupid code to do what I want.
1. I need my user update.php to look like this: update info on the fly (http://www.moonation.org/love/update.php)
Except I don't want old email required or change email by typing it twice, or spam protected (as only admin sees it no one else), or country....or delete--deleting I have covered by admin use ONLY.
That's just an example about what I mean with updating on the fly without logging into an area to update info.
2. I need my update form to check my existing pw in the database WITH my username (can't update username because I've uniqued it and it checks against the current pw) to allow updates...if the pw is wrong, update won't happen...my code currently doesn't check the pw and just updates anyway.
3. change pw by typing in username and current pw with new pw and confirm new pw...currently it's not working >_<
4. update SELECTED fields or ALL of the form WITHOUT emptying fields already filled in within my database...my code keeps emptying them >_<
At this point, I'm ready to give up playing with php all together because no matter how many tutorials and forums I read, php HATES me!
If you need to see my code, please let me know...
Basically I only have these fields
username (db row: username)
new password (must be able to empty current pw and replace it in db row: pw)
new password again (must equal new pw for db row: pw)
email (db row: email)
site name (db row: sitename)
site url (db row: siteurl)
current password (db row: pw)
I'm about to have an anurism!!!!!!!!!!!!!!